Skip to content

Commit 62abe0d

Browse files
Bump the nuget-dependencies group with 2 updates (#241)
* 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] <support@github.com> * 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. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: LarsL <26182282+LarsLaskowski@users.noreply.github.com>
1 parent 45b3c6e commit 62abe0d

3 files changed

Lines changed: 8 additions & 11 deletions

File tree

Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
44
</PropertyGroup>
55
<ItemGroup>
6-
<PackageVersion Include="AngleSharp" Version="1.7.2" />
6+
<PackageVersion Include="AngleSharp" Version="1.7.3" />
77
<PackageVersion Include="bunit" Version="2.9.0" />
88
<PackageVersion Include="coverlet.collector" Version="10.0.1" />
99
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="10.0.11" />
@@ -13,7 +13,7 @@
1313
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.11" />
1414
<PackageVersion Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="10.0.11" />
1515
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.9.0" />
16-
<PackageVersion Include="MSTest" Version="4.3.3" />
16+
<PackageVersion Include="MSTest" Version="4.4.0" />
1717
<PackageVersion Include="MudBlazor" Version="9.9.0" />
1818
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.3" />
1919
<PackageVersion Include="NSubstitute" Version="6.2.0" />

src/Tests/DockerUpdateGuard.Tests/RuntimeContainerScanOrchestratorTests.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,8 @@ await orchestrator.ScanAllAsync(ScanTriggerSource.Scheduled, CancellationToken.N
300300
Assert.AreEqual(ScanRunStatus.Succeeded,
301301
scanRun.Status,
302302
"Runtime scans must still complete when a registry candidate has no digest");
303-
Assert.HasCount(0,
304-
finding.TagCandidates,
305-
"Candidates without a digest must not be persisted for runtime findings");
303+
Assert.IsEmpty(finding.TagCandidates,
304+
"Candidates without a digest must not be persisted for runtime findings");
306305
}
307306
}
308307
}
@@ -424,9 +423,8 @@ await orchestrator.ScanAllAsync(ScanTriggerSource.Scheduled, CancellationToken.N
424423
"The original finding record must remain for history after the rescan");
425424
Assert.IsFalse(findings[0].IsActive,
426425
"The previous runtime finding must be deactivated when the update is no longer available");
427-
Assert.HasCount(0,
428-
findings[0].TagCandidates,
429-
"Stale tag candidates must be removed when a later scan no longer keeps the finding active");
426+
Assert.IsEmpty(findings[0].TagCandidates,
427+
"Stale tag candidates must be removed when a later scan no longer keeps the finding active");
430428
}
431429
}
432430
}

src/Tests/DockerUpdateGuard.Tests/UpdateDetectionServiceTests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,8 @@ public void UpdateDetectionServiceLatestAliasWithCurrentLatestDigestReturnsUpToD
412412
Assert.AreEqual("The running image already matches the current 'latest' tag",
413413
evaluation.Summary,
414414
"The summary must explain that the running latest digest is already current");
415-
Assert.HasCount(0,
416-
evaluation.Candidates,
417-
"No candidate list should be produced when the running latest digest already matches the registry latest digest");
415+
Assert.IsEmpty(evaluation.Candidates,
416+
"No candidate list should be produced when the running latest digest already matches the registry latest digest");
418417
}
419418

420419
/// <summary>

0 commit comments

Comments
 (0)