Skip to content

Commit

Permalink
change the variable name to standard
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya Narayan committed Sep 27, 2023
1 parent 204027e commit a4f812c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/LCT.PackageIdentifier.UTest/ConanParserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class ConanParserTests
public void ParseLockFile_GivenAInputFilePath_ReturnsSuccess()
{
//Arrange
int expectednoofcomponents = 17;
int expectedNoOfcomponents = 17;
string exePath = System.Reflection.Assembly.GetExecutingAssembly().Location;
string outFolder = Path.GetDirectoryName(exePath);
string packagefilepath = outFolder + @"\PackageIdentifierUTTestFiles";
Expand All @@ -49,7 +49,7 @@ public void ParseLockFile_GivenAInputFilePath_ReturnsSuccess()
Bom listofcomponents = new ConanProcessor().ParsePackageFile(appSettings);

//Assert
Assert.That(expectednoofcomponents, Is.EqualTo(listofcomponents.Components.Count), "Checks for no of components");
Assert.That(expectedNoOfcomponents, Is.EqualTo(listofcomponents.Components.Count), "Checks for no of components");

}

Expand All @@ -76,8 +76,8 @@ public void ParseLockFile_GivenAInputFilePath_ReturnDevDependentComp()

//Act
Bom listofcomponents = new ConanProcessor().ParsePackageFile(appSettings);

var IsDevDependency = listofcomponents.Components.Find(a => a.Name == "googletest").Properties[0].Value;
var IsDevDependency = listofcomponents.Components.Find(a => a.Name == "googletest")
.Properties.First(x => x.Name == "internal:siemens:clearing:development").Value;

//Assert
Assert.That(IsDev, Is.EqualTo(IsDevDependency), "Checks if Dev Dependency Component or not");
Expand Down

0 comments on commit a4f812c

Please sign in to comment.