-
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.
- Loading branch information
Viji
committed
Dec 24, 2024
1 parent
490452a
commit fcccec5
Showing
3 changed files
with
14 additions
and
9 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
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
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 |
---|---|---|
|
@@ -90,7 +90,7 @@ public void ParseLockFile_GivenAInputFilePath_ReturnDevDependentComp() | |
public void ParseLockFile_GivenAInputFilePathExcludeComponent_ReturnComponentCount() | ||
{ | ||
//Arrange | ||
int totalComponentsAfterExclusion = 15; | ||
int totalComponentsAfterExclusion = 17; | ||
string exePath = System.Reflection.Assembly.GetExecutingAssembly().Location; | ||
string outFolder = Path.GetDirectoryName(exePath); | ||
string packagefilepath = outFolder + @"\PackageIdentifierUTTestFiles"; | ||
|
@@ -113,14 +113,14 @@ public void ParseLockFile_GivenAInputFilePathExcludeComponent_ReturnComponentCou | |
Bom listofcomponents = new ConanProcessor(cycloneDXBomParser.Object).ParsePackageFile(appSettings); | ||
|
||
//Assert | ||
Assert.That(totalComponentsAfterExclusion, Is.EqualTo(listofcomponents.Components.Count), "Checks if the excluded components have been removed"); | ||
Assert.That(totalComponentsAfterExclusion, Is.EqualTo(listofcomponents.Components.Count), "Checks if the excluded components have not been removed"); | ||
} | ||
|
||
[TestCase] | ||
public void IsDevDependent_GivenListOfDevComponents_ReturnsSuccess() | ||
{ | ||
//Arrange | ||
var conanPackage = new ConanPackage() {Id = "10"}; | ||
var conanPackage = new ConanPackage() { Id = "10" }; | ||
var buildNodeIds = new List<string> { "10", "11", "12" }; | ||
var noOfDevDependent = 0; | ||
//Act | ||
|
@@ -135,13 +135,13 @@ public async Task IdentificationOfInternalComponents_ReturnsComponentData_Succes | |
{ | ||
// Arrange | ||
Component component = new Component() | ||
{ | ||
{ | ||
Name = "securitycommunicationmanager", | ||
Description = string.Empty, | ||
Version = "2.6.5", | ||
Purl = "pkg:conan/[email protected]" | ||
}; | ||
|
||
var components = new List<Component>() { component }; | ||
ComponentIdentification componentIdentification = new() { comparisonBOMData = components }; | ||
string[] repoList = { "internalrepo1", "internalrepo2" }; | ||
|