NumericAssertions<TSelf, T> Constructors
Base class for assertions on numeric values, and other values that have a zero and a sign such as TimeSpan.
c#
protected NumericAssertions(T value, T zero);Parameters
| Name | Type | Description |
|---|---|---|
value | T | The value to assert on. |
zero | T | The zero value for T. |
Remarks
Zero is neither positive nor negative. Values that are not ordered, such as NaN, are not zero, positive or negative.