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 true.assertTruthy(); 2 ["foo"].assertTruthy(); 3 1.assertTruthy(); 4 5 // Assert a DUnitAssertError is thrown if assertTruthy fails. 6 false.assertTruthy().assertThrow!(DUnitAssertError)("Failed asserting truthy");
Assert that a value evaluates as true.