The value used during the assertion.
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 false.assertFalsey(); 2 [].assertFalsey(); 3 null.assertFalsey(); 4 0.assertFalsey(); 5 6 // Assert a DUnitAssertError is thrown if assertFalsey fails. 7 true.assertFalsey().assertThrow!(DUnitAssertError)("Failed asserting falsey");
Assert that a value evaluates as false.