Skip to content

Commit

Permalink
merge upstream. small test name update
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd committed May 31, 2023
1 parent b92bb12 commit e5e0572
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ public void TestScanOutputsResults()
config.Repos.First().Branches.RemoveAt(1);
var results = scanner.Scan(config);

// now we need to confirm that the output file exists
var fileThatShouldExist = Path.Combine(TestDirectory, "output.json");

Assert.That(File.Exists(fileThatShouldExist), Is.EqualTo(true));
Expand All @@ -287,15 +286,15 @@ public void TestScanOutputsResults()

if (parsedNewResults != null)
{
AreResultsSame(results, parsedNewResults);
AssertResultsSame(results, parsedNewResults);
}
else
{
Assert.NotNull(parsedNewResults);
}
}

private bool AreResultsSame(AssetsResultSet a, AssetsResultSet b)
private bool AssertResultsSame(AssetsResultSet a, AssetsResultSet b)
{
if (a.Results.Count() != b.Results.Count())
{
Expand Down

0 comments on commit e5e0572

Please sign in to comment.