Skip to content

Refactor unit tests to use new assertion helpers #70

Refactor unit tests to use new assertion helpers

Refactor unit tests to use new assertion helpers #70

Triggered via push November 10, 2025 02:34
Status Failure
Total duration 3m 6s
Artifacts

ci-build.yml

on: push
Matrix: build-and-test
release
0s
release
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 20 warnings
build-and-test (Debug)
The strategy configuration was canceled because "build-and-test.Release" failed
build-and-test (Release): tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservableValidator.cs#L293
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Release): tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservableValidator.cs#L279
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Release): tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservableValidator.cs#L205
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Release): tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservableValidator.cs#L198
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Release): tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservableValidator.cs#L149
Do not negate boolean assertions, instead use the opposite assertion (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0023)
build-and-test (Release): tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservableValidator.cs#L293
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Release): tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservableValidator.cs#L279
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Release): tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservableValidator.cs#L205
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Release): tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservableValidator.cs#L198
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Release): tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservableValidator.cs#L149
Do not negate boolean assertions, instead use the opposite assertion (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0023)
build-and-test (Debug): tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservableValidator.cs#L309
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Debug): tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservableValidator.cs#L293
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Debug): tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservableValidator.cs#L279
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Debug): tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservableValidator.cs#L205
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Debug): tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservableValidator.cs#L198
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Debug): tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservableValidator.cs#L149
Do not negate boolean assertions, instead use the opposite assertion (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0023)
build-and-test (Debug): tests/CommunityToolkit.Mvvm.UnitTests/Test_RelayCommandAttribute.cs#L671
Expression value is never used (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0058)
build-and-test (Debug): tests/CommunityToolkit.Mvvm.UnitTests/Test_RelayCommandAttribute.cs#L670
Expression value is never used (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0058)
build-and-test (Debug): tests/CommunityToolkit.Mvvm.UnitTests/Test_RelayCommandAttribute.cs#L669
Expression value is never used (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0058)
build-and-test (Debug): tests/CommunityToolkit.Mvvm.UnitTests/Test_RelayCommandAttribute.cs#L668
Expression value is never used (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0058)