Skip to content

ComparableAssertions<TSelf, T> Constructors ​

Base class for assertions on values that can be ordered using IComparable<T>.

c#
protected ComparableAssertions(T value);

View source

Parameters ​

NameTypeDescription
valueTThe value to assert on.

Remarks ​

Values that are not ordered, such as NaN, are not less than, greater than or equal to anything, matching the behaviour of the comparison operators.