Run method |
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; |
|