Skip to content

IntegerAssertions<T> Class ​

Definition ​

Provides assertions for integer values.

c#
public sealed class IntegerAssertions<T> : NumericAssertions<IntegerAssertions<T>, T>
   where T : struct, IBinaryInteger<T>

View source

Type Parameters ​

NameDescription
TThe integer type of the value being asserted on.

Constructors ​

NameDescription
IntegerAssertions(T)Provides assertions for integer values.

Methods ​

NameDescription
Equal<TOther>(TOther)Asserts that the integer value is equal to the expected value. Supports comparing integer values of different types.
NotEqual<TOther>(TOther)Asserts that the integer value is not equal to the expected value. Supports comparing integer values of different types.