The value used during the assertion.
The suffix to match.
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 "foo bar".assertEndsWith("bar"); 2 "baz qux".assertEndsWith("qux"); 3 4 // Assert a DUnitAssertError is thrown if assertEndsWith fails. 5 "foo".assertEndsWith("bar").assertThrow!(DUnitAssertError)("Failed asserting ends with");
Assert that a string ends with a particular string.