Skip to content

Remove unnecessary null-forgiving operator

1c82d8f
Select commit
Loading
Failed to load commit list.
Closed

Pass actual exception as inner exception in ThrowsException assertions #7124

Remove unnecessary null-forgiving operator
1c82d8f
Select commit
Loading
Failed to load commit list.
Azure Pipelines / microsoft.testfx (Build MacOS Release) failed Dec 15, 2025 in 4m 23s

Build MacOS Release failed

Annotations

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

See this annotation in the file changed.

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

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

src/TestFramework/TestFramework/Assertions/Assert.cs(60,13): error CS8604: (NETCORE_ENGINEERING_TELEMETRY=Build) Possible null reference argument for parameter 'ex' in 'AssertFailedException.AssertFailedException(string msg, Exception ex)'.

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

See this annotation in the file changed.

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

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

src/TestFramework/TestFramework/Assertions/Assert.cs(60,13): error CS8604: (NETCORE_ENGINEERING_TELEMETRY=Build) Possible null reference argument for parameter 'ex' in 'AssertFailedException.AssertFailedException(string msg, Exception ex)'.

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

See this annotation in the file changed.

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

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

src/TestFramework/TestFramework/Assertions/Assert.cs(60,13): error CS8604: (NETCORE_ENGINEERING_TELEMETRY=Build) Possible null reference argument for parameter 'ex' in 'AssertFailedException.AssertFailedException(string msg, Exception ex)'.

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

See this annotation in the file changed.

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

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

src/TestFramework/TestFramework/Assertions/Assert.cs(60,13): error CS8604: (NETCORE_ENGINEERING_TELEMETRY=Build) Possible null reference argument for parameter 'ex' in 'AssertFailedException.AssertFailedException(string msg, Exception ex)'.

Check failure on line 9 in Build log

See this annotation in the file changed.

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

Build log #L9

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