Provides assertion functions.
Type | Name | Signature |
---|---|---|
function | assertTrue | void assertTrue(bool, string) |
function | assert | void assert(bool) |
function | assertEqual | void assertEqual(var, var) |
void assertTrue(bool predicate, string msg)
Assert a predicate. On assertion failure, throw System.AssertException.
Parameters
void assert(bool predicate)
Assert a predicate. On assertion failure, throw System.AssertException.
Parameters
void assertEqual(var exp, var act)
Assert that two values are equal. On assertion failure, throw System.AssertException.
Parameters