Create method
Constructs a record of a failed test.

Applies to
TTestFailure

Declaration
Constructor Create(failedTest: ITest; thrownException: Exception; msg :string = '');

Description
Constructs a TTestFailure with the given test and the exception which occurred while running that test. see TTestResult.AddError see TTestResult.AddFailure

Implementation

constructor TTestFailure.Create(FailedTest: ITest; thrownException: Exception; msg :string);
begin
  assert(assigned(thrownException));

  inherited Create;
  fFailedTest := FailedTest;
  fThrownExceptionName := thrownException.ClassName;
  fThrownExceptionMessage := msg + thrownException.message;
End;


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