From 2837c414585f24a0dbc33f7d74104329433e4dbe Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 01:24:37 +0000 Subject: [PATCH 1/2] Bump the nuget-dependencies group with 2 updates Bumps AngleSharp from 1.7.2 to 1.7.3 Bumps MSTest from 4.3.3 to 4.4.0 --- updated-dependencies: - dependency-name: AngleSharp dependency-version: 1.7.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: nuget-dependencies - dependency-name: MSTest dependency-version: 4.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: nuget-dependencies ... Signed-off-by: dependabot[bot] --- Directory.Packages.props | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 @@ - + From e58a2aa43d6ce53b7be72f34e430283393d87bbe Mon Sep 17 00:00:00 2001 From: Lars Laskowski <26182282+LarsLaskowski@users.noreply.github.com> Date: Sat, 5 Sep 2026 15:34:42 +0200 Subject: [PATCH 2/2] Replace Assert.HasCount(0, ...) with Assert.IsEmpty in tests Updated multiple test cases to use Assert.IsEmpty instead of Assert.HasCount(0, ...) for clearer empty collection assertions. Assertion messages remain unchanged to preserve test intent. --- .../RuntimeContainerScanOrchestratorTests.cs | 10 ++++------ .../UpdateDetectionServiceTests.cs | 5 ++--- 2 files changed, 6 insertions(+), 9 deletions(-) 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"); } ///