assertFalse

assertFalse(condition: Boolean);

The assertFalse method of the JadeTestCase class is invoked by a user test method to evaluate the result of the test, represented by the value of the condition parameter.

If the test fails, indicated by the condition parameter evaluating to true, the following message is generated to describe the failure.

assertFalse

The following code example shows the use of the assertFalse method in a user test method.

add() unitTest;
begin
    calculator.add(1);
    calculator.add(1);
    assertFalse(calculator.getResult() <> 2);
end;

A failure in the test method results in the testFailure method being executed by an object implementing the JadeTestListenerIF interface. For details, see "Using the JADE Testing Framework", in Chapter 17 of the JADE Developer’s Reference.