assert( booleanExpression : 'message' );
Checks the specified Boolean expression for true
. The assertion
fails if the expression evaluates to false
. When the assertion
fails, the value of 'message'
is added to the test report.
void
Example 1:
assert( 1=2 : 'Obviously wrong' );
// Never reached!
assert( rc=0 : 'Unexpected return code. Expected: 0' );
// Never reached!
Call "assert" Using
By Content bResult
[By Content "message".