comparison ext/UnitTest++/src/Test.h @ 37:0d325e9d5953

added unittest++ files into ext. Not hooked into build scripts yet
author jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 12 Jul 2008 12:00:57 +0000
parents
children
comparison
equal deleted inserted replaced
36:6f1227f4932b 37:0d325e9d5953
1 #ifndef UNITTEST_TEST_H
2 #define UNITTEST_TEST_H
3
4 #include "TestDetails.h"
5
6 namespace UnitTest {
7
8 class TestResults;
9 class TestList;
10
11 class Test
12 {
13 public:
14 Test(char const* testName, char const* suiteName = "DefaultSuite", char const* filename = "", int lineNumber = 0);
15 virtual ~Test();
16 void Run(TestResults& testResults) const;
17
18 TestDetails const m_details;
19 Test* next;
20 mutable bool m_timeConstraintExempt;
21
22 static TestList& GetTestList();
23
24 private:
25 virtual void RunImpl(TestResults& testResults_) const;
26
27 Test(Test const&);
28 Test& operator =(Test const&);
29 };
30
31
32 }
33
34 #endif