Not keyword erase sut name
Closed this issue · 0 comments
dupdob commented
When one uses Not and As to rename the sut, the custom naming is lost.
As an example, this test does not generate the expected error message:
Check.That((string) "foo")
.As($"foo")
.Not.IsEqualTo("foo");
gives this error message:
The checked string is equal to the given one whereas it must not.
The expected string: different from
["foo"]
instead of:
The checked [foo] is equal to the given one whereas it must not.
The expected [foo]: different from
["foo"]