Skip to content

Refactor unit tests to use expected-first Assert.AreEqual #69

Refactor unit tests to use expected-first Assert.AreEqual

Refactor unit tests to use expected-first Assert.AreEqual #69

Triggered via push November 10, 2025 02:33
Status Success
Total duration 11m 44s
Artifacts 4

ci-build.yml

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

Annotations

20 warnings
build-and-test (Release): tests/CommunityToolkit.HighPerformance.UnitTests/Streams/Test_ReadOnlySequenceStream.cs#L92
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Release): tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_SpanOwner{T}.cs#L89
Use 'Assert.IsGreaterThanOrEqualTo' instead of 'Assert.IsTrue' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Release): tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_SpanOwner{T}.cs#L46
Use 'Assert.IsEmpty' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Release): tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_SpanOwner{T}.cs#L39
Use 'Assert.AreEqual' instead of 'Assert.IsTrue' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Release): tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_SpanOwner{T}.cs#L38
Use 'Assert.AreEqual' instead of 'Assert.IsTrue' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Release): tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_SpanOwner{T}.cs#L36
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Release): tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_SpanOwner{T}.cs#L22
Use 'Assert.AreEqual' instead of 'Assert.IsTrue' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Release): tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_SpanOwner{T}.cs#L21
Use 'Assert.AreEqual' instead of 'Assert.IsTrue' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Release): tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_StringPool.cs#L46
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Release): tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_StringPool.cs#L40
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Debug): tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_StreamExtensions.cs#L53
Use 'Assert.IsTrue' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Debug): tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_SpanOwner{T}.cs#L46
Use 'Assert.IsEmpty' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Debug): tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_SpanOwner{T}.cs#L39
Use 'Assert.AreEqual' instead of 'Assert.IsTrue' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Debug): tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_SpanOwner{T}.cs#L38
Use 'Assert.AreEqual' instead of 'Assert.IsTrue' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Debug): tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_SpanOwner{T}.cs#L36
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Debug): tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_StreamExtensions.cs#L32
Use 'Assert.IsTrue' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Debug): tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_SpanOwner{T}.cs#L22
Use 'Assert.AreEqual' instead of 'Assert.IsTrue' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Debug): tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_SpanOwner{T}.cs#L21
Use 'Assert.AreEqual' instead of 'Assert.IsTrue' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Debug): tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_StringPool.cs#L46
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
build-and-test (Debug): tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_StringPool.cs#L40
Use 'Assert.HasCount' instead of 'Assert.AreEqual' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)

Artifacts

Produced during runtime
Name Size Digest
msbuild_log_Debug Expired
4.19 MB
sha256:881ba091d4a7573b8af4c102484b37bfbcdadb7393579910d67699ff07bb8e99
msbuild_log_Release Expired
4.23 MB
sha256:18c2a367f718cab5d8af3c8a87daa598fd308a4815802258e23319e2033a5557
nuget-list-dotnet Expired
183 Bytes
sha256:a3b135952cc2bb83e16cf078b46f7946984466a84694e4180b427f6e7df5ed68
nuget-packages-dotnet Expired
1.58 MB
sha256:05175c3da6f1fa608107058f9d5d0ff99b924e978f1b077fda01c95648fd316e