-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #226 from siemens/feature/NewAppSettingsforAllExcs
Package identifier changes for the new app settings
- Loading branch information
Showing
42 changed files
with
1,710 additions
and
904 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,17 +59,20 @@ public void RemoveMultipleExcludedComponents_ReturnSuccess() | |
ComponentsForBom.Add(new Component() { Name = "Debian", Version = "3.1.2" }); | ||
ComponentsForBom.Add(new Component() { Name = "Newton", Version = "3.1.3" }); | ||
ComponentsForBom.Add(new Component() { Name = "Log4t", Version = "3.1.4" }); | ||
ComponentsForBom.Add(new Component() { Name = "Log4t", Version = "3.1.5",Purl= "pkg:npm/[email protected]" }); | ||
ComponentsForBom.Add(new Component() { Name = "Log4t", Version = "3.1.5", Purl = "pkg:npm/[email protected]" }); | ||
int noOfExcludedComponents = 0; | ||
|
||
List<string> list = new List<string>(); | ||
list.Add("Debian:*"); | ||
list.Add("Newton:3.1.3"); | ||
list.Add("pkg:npm/[email protected]"); | ||
|
||
//Act | ||
CommonHelper.RemoveExcludedComponents(ComponentsForBom, list, ref noOfExcludedComponents); | ||
|
||
//Assert | ||
Assert.That(noOfExcludedComponents, Is.EqualTo(4), "Returns the count of excluded components"); | ||
Assert.That(noOfExcludedComponents, Is.EqualTo(5), "Returns the count of excluded components"); | ||
|
||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.