forked from VSoftTechnologies/DUnitX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDUnitX.InternalInterfaces.pas
90 lines (71 loc) · 3.41 KB
/
DUnitX.InternalInterfaces.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{***************************************************************************}
{ }
{ DUnitX }
{ }
{ Copyright (C) 2013 Vincent Parrett }
{ }
{ http://www.finalbuilder.com }
{ }
{ }
{***************************************************************************}
{ }
{ Licensed under the Apache License, Version 2.0 (the "License"); }
{ you may not use this file except in compliance with the License. }
{ You may obtain a copy of the License at }
{ }
{ http://www.apache.org/licenses/LICENSE-2.0 }
{ }
{ Unless required by applicable law or agreed to in writing, software }
{ distributed under the License is distributed on an "AS IS" BASIS, }
{ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. }
{ See the License for the specific language governing permissions and }
{ limitations under the License. }
{ }
{***************************************************************************}
unit DUnitX.InternalInterfaces;
interface
uses
TimeSpan,
DUnitX.Generics,
DUnitX.Extensibility,
DUnitX.TestFrameWork;
{$I DUnitX.inc}
type
//These interfaces mirror the Info classes in the framework but expose stuff we need for runtime.
ISetTestResult = interface
['{B50D50E9-3609-40BF-847D-53B5BF19B5C7}']
procedure SetResult(const value : ITestResult);
end;
//Used by the TestExecute method.
ITestExecuteContext = interface
['{DE4ADB3F-3B5B-4B90-8659-0BFA578977CC}']
procedure RecordFixture(const fixtureResult : IFixtureResult);
procedure RecordResult(const fixtureResult : IFixtureResult; const testResult : ITestResult);
procedure RollupResults;
end;
ITestFixtureContext = interface
['{C3B85C73-1FE8-4558-8AB0-7E8075821D35}']
end;
ITestExecute = interface
['{C59443A9-8C7D-46CE-83A1-E40309A1B384}']
procedure Execute(const context : ITestExecuteContext);
end;
ITestCaseExecute = interface(ITestExecute)
['{49781E22-C127-4BED-A9D5-84F9AAACE96C}']
function GetCaseName : string;
end;
IFixtureResultBuilder = interface
['{2604E655-349D-4379-9796-1C708CAD7307}']
procedure AddTestResult(const AResult : ITestResult);
procedure AddChild(const AFixtureResult : IFixtureResult);
procedure RollUpResults;
// function Combine(const AFixtureResult : IFixtureResult) : IFixtureResult;
// function AreEqual(const AFixtureResult : IFixtureResult) : boolean;
end;
implementation
{ TTestList }
uses
TypInfo,
SysUtils;
end.