diff --git a/Directory.Packages.props b/Directory.Packages.props index 7882c67..02adb36 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -3,7 +3,7 @@ true - + @@ -13,7 +13,7 @@ - + diff --git a/src/Tests/DockerUpdateGuard.Tests/RuntimeContainerScanOrchestratorTests.cs b/src/Tests/DockerUpdateGuard.Tests/RuntimeContainerScanOrchestratorTests.cs index 016a09f..f072c92 100644 --- a/src/Tests/DockerUpdateGuard.Tests/RuntimeContainerScanOrchestratorTests.cs +++ b/src/Tests/DockerUpdateGuard.Tests/RuntimeContainerScanOrchestratorTests.cs @@ -300,9 +300,8 @@ await orchestrator.ScanAllAsync(ScanTriggerSource.Scheduled, CancellationToken.N Assert.AreEqual(ScanRunStatus.Succeeded, scanRun.Status, "Runtime scans must still complete when a registry candidate has no digest"); - Assert.HasCount(0, - finding.TagCandidates, - "Candidates without a digest must not be persisted for runtime findings"); + Assert.IsEmpty(finding.TagCandidates, + "Candidates without a digest must not be persisted for runtime findings"); } } } @@ -424,9 +423,8 @@ await orchestrator.ScanAllAsync(ScanTriggerSource.Scheduled, CancellationToken.N "The original finding record must remain for history after the rescan"); Assert.IsFalse(findings[0].IsActive, "The previous runtime finding must be deactivated when the update is no longer available"); - Assert.HasCount(0, - findings[0].TagCandidates, - "Stale tag candidates must be removed when a later scan no longer keeps the finding active"); + Assert.IsEmpty(findings[0].TagCandidates, + "Stale tag candidates must be removed when a later scan no longer keeps the finding active"); } } } diff --git a/src/Tests/DockerUpdateGuard.Tests/UpdateDetectionServiceTests.cs b/src/Tests/DockerUpdateGuard.Tests/UpdateDetectionServiceTests.cs index f03fa7f..28b4f7f 100644 --- a/src/Tests/DockerUpdateGuard.Tests/UpdateDetectionServiceTests.cs +++ b/src/Tests/DockerUpdateGuard.Tests/UpdateDetectionServiceTests.cs @@ -412,9 +412,8 @@ public void UpdateDetectionServiceLatestAliasWithCurrentLatestDigestReturnsUpToD Assert.AreEqual("The running image already matches the current 'latest' tag", evaluation.Summary, "The summary must explain that the running latest digest is already current"); - Assert.HasCount(0, - evaluation.Candidates, - "No candidate list should be produced when the running latest digest already matches the registry latest digest"); + Assert.IsEmpty(evaluation.Candidates, + "No candidate list should be produced when the running latest digest already matches the registry latest digest"); } ///