2
Vote

Add BeNull() for nullable types

description

I just added an assertion for a int? field. I expected a Should().BeNull() extension method but it is not there. Writing actual.SomeValue.Should().Be(null); seems wrong compared to all the other nice extension methods.

comments

dennisdoomen wrote Sep 16, 2012 at 1:05 PM

Most types have a Should().HaveValue() extension method. Is that what you are looking for?

rprimrose wrote Sep 16, 2012 at 10:50 PM

LOL, just noticed I had previously added this issue. Sorry for that.