NotBe
ShouldNotBe
is the inverse of ShouldBe
.
Objects
ShouldNotBe
works on all types and compares using .Equals
.
Exception
Numeric
ShouldNotBe
also allows you to compare numeric values, regardless of their value type.
Integer
Exception
Long
Exception
DateTime(Offset)
ShouldNotBe
DateTime overloads are similar to the numeric overloads and also support tolerances.
Exception
TimeSpan
TimeSpan
also has tolerance overloads
Exception
Last updated