assertGreaterThanOrEqual

Assert that a value is greater than or equal to a threshold value.

void
assertGreaterThanOrEqual
(
A
B
)
(
,,
string message = "Failed asserting greater than or equal"
,
string file = __FILE__
,
size_t line = __LINE__
)

Parameters

value
Type: A

The value used during the assertion.

threshold
Type: B

The threshold value.

message
Type: string

The error message to display.

file
Type: string

The file name where the error occurred. The value is added automatically at the call site.

line
Type: size_t

The line where the error occurred. The value is added automatically at the call site.

Throws

DUnitAssertError if the assertation fails.

Examples

1 10.assertGreaterThanOrEqual(10);
2 11.assertGreaterThanOrEqual(10);
3 
4 // Assert a DUnitAssertError is thrown if assertGreaterThanOrEqual fails.
5 11.assertGreaterThanOrEqual(12).assertThrow!(DUnitAssertError)("Failed asserting greater than or equal");

Meta