ShouldBe

Objects

ShouldBeExamples works on all types and compares using .Equals.

Exception

Numeric

ShouldBe numeric overloads accept tolerances and has overloads for float, double and decimal types.

Exception

DateTime(Offset)

DateTime overloads are similar to the numeric overloads and support tolerances.

Exception

TimeSpan

TimeSpan also has tolerance overloads

Exception

Want to improve shouldy? We have an open issue at [#303](https://github.com/shouldly/shouldly/issues/303) to improve this error message!

Enumerables

Enumerable comparison is done on the elements in the enumerable, so you can compare an array to a list and have it pass.

Exception

Enumerables of Numerics

If you have enumerables of float, decimal or double types then you can use the tolerance overloads, similar to the value extensions.

Exception

Bools

Exception