Skip to content

ComparableAssertions<TSelf, T>.BeLessThanOrEqualTo Method ​

Definition ​

Asserts that the value is less than or equal to the expected value.

c#
public AssertionsChain<TSelf, T> BeLessThanOrEqualTo(T expected);

View source

Parameters ​

NameTypeDescription
expectedTThe value the value should be less than or equal to.

Returns ​

AssertionsChain<TSelf, T>

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