Skip to content

Don't use '[ExpectedException]' in MVVM tests #59

Don't use '[ExpectedException]' in MVVM tests

Don't use '[ExpectedException]' in MVVM tests #59

Triggered via push November 7, 2025 20:00
Status Failure
Total duration 10m 37s
Artifacts 2

ci-build.yml

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

Annotations

3 errors and 20 warnings
build-and-test (Release)
Process completed with exit code 1.
build-and-test (Debug)
The strategy configuration was canceled because "build-and-test.Release" failed
build-and-test (Debug)
The operation was canceled.
build-and-test (Release): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L127
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Release): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L113
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Release): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L106
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Release): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L93
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Release): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L79
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Release): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L72
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Release): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L59
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Release): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L46
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Release): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L33
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Release): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L20
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Debug): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L127
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Debug): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L113
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Debug): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L106
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Debug): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L93
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Debug): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L79
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Debug): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L72
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Debug): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L59
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Debug): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L46
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Debug): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L33
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)
build-and-test (Debug): tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.Array.cs#L20
Prefer 'Assert.ThrowsExactly/ThrowsExactlyAsync' over '[ExpectedException]' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)

Artifacts

Produced during runtime
Name Size Digest
msbuild_log_Debug Expired
4.18 MB
sha256:842a88905c9d6344233a69e8f2769dec268953a863bb4afb824367a18cc470d0
msbuild_log_Release Expired
4.17 MB
sha256:988a9baae4640c302ba092a585f765b488c8be1e44ae92d276a42ea8a01bb25f