Skip to content

FloatingPointAssertions<T>.BeLessThanOrEqualTo Method

Definition

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

public FloatingPointAssertionsChain<T> BeLessThanOrEqualTo(T expected, T precision);

Parameters

Name Type Description
expected T The value the floating-point number should be less than or equal to.
precision T The precision to use for the comparison.

Returns

FloatingPointAssertionsChain<T>

A FloatingPointAssertionsChain<T> for chaining further assertions.