Improve IsExactInstanceOfType error message for NULL values #7418
+21
−4
Azure Pipelines / microsoft.testfx
failed
Feb 16, 2026 in 17m 18s
Build #20260216.13 failed
Annotations
azure-pipelines / microsoft.testfx
src/TestFramework/TestFramework/Assertions/Assert.IsExactInstanceOfType.cs#L352
src/TestFramework/TestFramework/Assertions/Assert.IsExactInstanceOfType.cs(352,18): error IDE0045: (NETCORE_ENGINEERING_TELEMETRY=Build) 'if' statement can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0045)
azure-pipelines / microsoft.testfx
src/TestFramework/TestFramework/Assertions/Assert.IsExactInstanceOfType.cs#L352
src/TestFramework/TestFramework/Assertions/Assert.IsExactInstanceOfType.cs(352,18): error IDE0045: (NETCORE_ENGINEERING_TELEMETRY=Build) 'if' statement can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0045)
azure-pipelines / microsoft.testfx
src/TestFramework/TestFramework/Assertions/Assert.IsExactInstanceOfType.cs#L352
src/TestFramework/TestFramework/Assertions/Assert.IsExactInstanceOfType.cs(352,18): error IDE0045: (NETCORE_ENGINEERING_TELEMETRY=Build) 'if' statement can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0045)
azure-pipelines / microsoft.testfx
src/TestFramework/TestFramework/Assertions/Assert.IsExactInstanceOfType.cs#L348
src/TestFramework/TestFramework/Assertions/Assert.IsExactInstanceOfType.cs(348,62): error CS0518: (NETCORE_ENGINEERING_TELEMETRY=Build) Predefined type 'System.Index' is not defined or imported
Loading