Skip to content

ComparableAssertions<TSelf, T>.BeInRange Method ​

Definition ​

Asserts that the value is between the specified minimum and maximum values, inclusive.

c#
public AssertionsChain<TSelf, T> BeInRange(T minimum, T maximum);

View source

Parameters ​

NameTypeDescription
minimumTThe minimum allowed value.
maximumTThe maximum allowed value.

Returns ​

AssertionsChain<TSelf, T>

An AssertionsChain<TAssertions, T> for chaining further assertions.