The value to assert as null.
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 class T {} 2 3 string foo; 4 int[] bar; 5 T t; 6 7 foo.assertNull(); 8 bar.assertNull(); 9 t.assertNull(); 10 null.assertNull(); 11 12 // Assert a DUnitAssertError is thrown if assertNull fails. 13 "foo".assertNull().assertThrow!(DUnitAssertError)("Failed asserting null");
Assert that a value is null.