Check method
Checks that a condition is met.

Applies to
TTestCase

Declaration
Procedure Check(condition: boolean; msg: string = '');

Description
Logs a failure using the optional message string if not.

Parameters
condition The condition to check.
msg An optional message use if the check fails.

Implementation

procedure TTestCase.Check(condition :boolean; msg :string);
begin
    if (not condition) then
        Fail(msg, CallerAddr);
End;


HTML generated by Time2HELP
http://www.time2help.com