Should icon indicating copy to clipboard operation
Should copied to clipboard

ShouldNotBeType<T>() does not accept null

Open thomaseyde opened this issue 9 years ago • 0 comments

ShouldBeType<T>() accepts null, while the counterpart ShouldNotBeType<T>() does not. It's not only inconsistent, but also very inconvenient:

I don't want my assertion to throw a NullReferenceException, because then I lose the assertion message and have no idea what the error might be.

thomaseyde avatar Aug 05 '15 11:08 thomaseyde