The value used during the assertion.
The threshold value.
The error message to display.
The file name where the error occurred. The value is added automatically at the call site.
The line where the error occurred. The value is added automatically at the call site.
DUnitAssertError if the assertation fails.
1 10.assertLessThanOrEqual(10); 2 9.assertLessThanOrEqual(10); 3 4 // Assert a DUnitAssertError is thrown if assertLessThanOrEqual fails. 5 9.assertLessThanOrEqual(8).assertThrow!(DUnitAssertError)("Failed asserting less than or equal");
Assert that a value is less than or equal to a threshold value.