IntegerAssertions<T> Class
Definition
Provides assertions for integer values.
public sealed class IntegerAssertions<T> : ObjectAssertions<T>
where T : struct, IBinaryInteger<T>
Type Parameters
| Name |
Description |
T |
The integer type of the value being asserted on. |
Constructors
Methods
| Name |
Description |
BeGreaterThan(T) |
Asserts that the integer value is greater than the expected value. |
BeGreaterThanOrEqualTo(T) |
Asserts that the integer value is greater than or equal to the expected value. |
BeLessThan(T) |
Asserts that the integer value is less than the expected value. |
BeLessThanOrEqualTo(T) |
Asserts that the integer value is less than or equal to the expected value. |
BeNegative() |
Asserts that the integer value is negative. |
BePositive() |
Asserts that the integer value is positive. |
BeZero() |
Asserts that the integer value is zero. |
Equal<TOther>(TOther) |
Asserts that the integer value is equal to the expected value. Supports comparing integer values of different types. |
NotBeNegative() |
Asserts that the integer value is not negative. |
NotBePositive() |
Asserts that the integer value is not positive. |
NotBeZero() |
Asserts that the integer value is not zero. |
NotEqual<TOther>(TOther) |
Asserts that the integer value is not equal to the expected value. Supports comparing integer values of different types. |