Run method
A convenience method to run this test, collecting the results with a default TestResult object.

Applies to
TAbstractTest

Declaration
Function Run: TTestResult;

Description
Run will Create a TTestResult, run this test case and collect any TTestFailure into the TTestResult. The caller is responsible for freeing the returned TTestResult.

Returns
A TTestResult with the results of running this test.

Implementation

function TAbstractTest.Run: TTestResult;
var
  testResult : TTestResult;
begin
  testResult := TTestResult.Create;
  try
    testResult.RunSuite(self);
  except
    testResult.Free;
    raise;
  end;
  Result := testResult;
End;


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