Skip to content

Add Assert.Scope() for soft assertions - #7355

Merged
Amaury Levé (Evangelink) merged 26 commits into
mainfrom
dev/amauryleve/soft-assertion
Apr 20, 2026
Merged

Amaury Levé (Evangelink) merged 26 commits into
mainfrom
dev/amauryleve/soft-assertion

Address code review

b0208b3
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
Azure Pipelines / microsoft.testfx (Build MacOS Debug) failed Feb 9, 2026 in 8m 26s

Build MacOS Debug failed

Annotations

Check failure on line 9 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build MacOS Debug)

Build log #L9

Publishing build artifacts failed with an error: Not found PathtoPublish: /Users/runner/work/1/s/artifacts/packages/Debug/Shipping

Check failure on line 9 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build MacOS Debug)

Build log #L9

Publishing build artifacts failed with an error: Not found PathtoPublish: /Users/runner/work/1/s/artifacts/TestResults/Debug

Check failure on line 9 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build MacOS Debug)

Build log #L9

Publishing build artifacts failed with an error: Not found PathtoPublish: /Users/runner/work/1/a/binlogs

Check failure on line 9 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build MacOS Debug)

Build log #L9

Error: Not found SourceFolder: /Users/runner/work/1/s/artifacts/tmp/Debug/testsuite

Check failure on line 60 in src/TestFramework/TestFramework/Assertions/AssertScope.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build MacOS Debug)

src/TestFramework/TestFramework/Assertions/AssertScope.cs#L60

src/TestFramework/TestFramework/Assertions/AssertScope.cs(60,13): error CA1836: (NETCORE_ENGINEERING_TELEMETRY=Build) Prefer 'IsEmpty' over 'Count' to determine whether the object is empty (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1836)