-
Notifications
You must be signed in to change notification settings - Fork 292
Labels
Area: AssertionNeeds: DesignNeeds research and proposal for how the feature will be implemented.Needs research and proposal for how the feature will be implemented.State: Needs Approval
Description
Summary
Currently the AreSame overload methods produce an AssertFailedException when either expected or actual are null and the other one isn't, but these messages do not mention anything about null values.
Example
string? expected = "test";
string? actual = null;
Assert.AreSame(expected, actual);Actual result:
Assert.AreSame failed. 'expected' expression: 'expected', 'actual' expression: 'actual'.
Proposed result:
Assert.AreSame failed. 'expected' expression: 'expected', 'actual' expression: 'actual'. 'actual' was null.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area: AssertionNeeds: DesignNeeds research and proposal for how the feature will be implemented.Needs research and proposal for how the feature will be implemented.State: Needs Approval