Skip to content

FloatingPointAssertions<T>.BeLessThanOrEqualTo Method ​

Definition ​

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

c#
public new AssertionsChain<FloatingPointAssertions<T>, T> BeLessThanOrEqualTo(T expected, T precision);

View source

Parameters ​

NameTypeDescription
expectedTThe value the floating-point number should be less than or equal to.
precisionTThe precision to use for the comparison.

Returns ​

AssertionsChain<FloatingPointAssertions<T>, T>

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