-
Notifications
You must be signed in to change notification settings - Fork 292
Labels
Area: AssertionArea: MSTestIssues with MSTest that are not specific to more refined area (e.g. analyzers or assertions)Issues with MSTest that are not specific to more refined area (e.g. analyzers or assertions)
Description
Summary
Currently the IsExactInstanceOfType overloads produce an AssertFailedException when the input value is NULL, but these messages are not very clear:
Example
string? input = null;
Assert.IsExactInstanceOfType<string>(input);Actual result:
Assert.IsExactInstanceOfType failed. 'value' expression: 'input'.
Proposed result:
Assert.IsExactInstanceOfType failed. 'value' expression: 'input'. 'value' was NULL.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area: AssertionArea: MSTestIssues with MSTest that are not specific to more refined area (e.g. analyzers or assertions)Issues with MSTest that are not specific to more refined area (e.g. analyzers or assertions)