From e5e05727a79ac65ad70d3c4e12141f73fd64a1b4 Mon Sep 17 00:00:00 2001 From: scbedd <45376673+scbedd@users.noreply.github.com> Date: Wed, 31 May 2023 15:25:07 -0700 Subject: [PATCH] merge upstream. small test name update --- .../ScanTests.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/assets-automation/assets-maintenance-tool/Azure.Sdk.Tools.Assets.MaintenanceTool.Tests/ScanTests.cs b/tools/assets-automation/assets-maintenance-tool/Azure.Sdk.Tools.Assets.MaintenanceTool.Tests/ScanTests.cs index 6150de8d5e5..51c81d0d54c 100644 --- a/tools/assets-automation/assets-maintenance-tool/Azure.Sdk.Tools.Assets.MaintenanceTool.Tests/ScanTests.cs +++ b/tools/assets-automation/assets-maintenance-tool/Azure.Sdk.Tools.Assets.MaintenanceTool.Tests/ScanTests.cs @@ -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)); @@ -287,7 +286,7 @@ public void TestScanOutputsResults() if (parsedNewResults != null) { - AreResultsSame(results, parsedNewResults); + AssertResultsSame(results, parsedNewResults); } else { @@ -295,7 +294,7 @@ public void TestScanOutputsResults() } } - private bool AreResultsSame(AssetsResultSet a, AssetsResultSet b) + private bool AssertResultsSame(AssetsResultSet a, AssetsResultSet b) { if (a.Results.Count() != b.Results.Count()) {