-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfbtesting.bi
More file actions
31 lines (26 loc) · 806 Bytes
/
fbtesting.bi
File metadata and controls
31 lines (26 loc) · 806 Bytes
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
#pragma once
namespace fbtesting
enum TestResult
Passed
Failed
Skipped
end enum
type Testing
public:
declare constructor(byref name_ as const string = "")
declare sub Test(byref c as const sub(byref t as Testing), byref name_ as const string = "")
declare sub Run()
declare function Failed() as boolean
declare sub Fail()
declare sub Log(byref message as const string)
declare sub Error(byref message as const string)
declare sub Skip()
private:
name as string
isFailed as boolean
currentState as TestResult
testCases(any) as sub(byref t as Testing )
testNames(any) as string
results(any) as string
end type
end namespace