Unit2Test.pas
上传用户:yjb1804
上传日期:2021-01-30
资源大小:3105k
文件大小:1k
- unit Unit2Test;
- interface
- uses
- TestFramework, Unit2;
- type
- TTestSuperObject = class(TTestCase)
- private
- FSuperObject: TSuperObject;
- public
- procedure Setup; override;
- procedure TearDown; override;
- published
- procedure testSuperObject;
- end;
- implementation
- { TTestSuperObject }
- procedure TTestSuperObject.Setup;
- begin
- FSuperObject := TSuperObject.Create;
- end;
- procedure TTestSuperObject.TearDown;
- begin
- FSuperObject.Free;
- end;
- procedure TTestSuperObject.testSuperObject;
- begin
- check(FSuperObject.DoSomethingSuper);
- end;
- initialization
- RegisterTest('', TTestSuperObject.Suite);
- end.