1 |
robwdcock |
218 |
// bruce_UnitTests.cpp : Defines the entry point for the console application. |
2 |
|
|
// |
3 |
|
|
|
4 |
|
|
#include <iostream> |
5 |
phornby |
221 |
|
6 |
|
|
// TODO : Can't we just use int main(int, char* []) on all platforms? |
7 |
|
|
#ifdef MSVC |
8 |
robwdcock |
218 |
#include <tchar.h> |
9 |
phornby |
221 |
#else |
10 |
|
|
#define _TCHAR char |
11 |
|
|
#define _tmain main |
12 |
|
|
#endif |
13 |
robwdcock |
218 |
|
14 |
|
|
#include "BruceTestCase.h" |
15 |
|
|
#include "BruceFactoryTestCase.h" |
16 |
|
|
|
17 |
|
|
#include "CppUnitTest/TestRunner.h" |
18 |
|
|
|
19 |
|
|
using namespace CppUnitTest; |
20 |
|
|
|
21 |
|
|
int _tmain(int argc, _TCHAR* argv[]) |
22 |
|
|
{ |
23 |
|
|
// |
24 |
|
|
// object which runs all of the tests |
25 |
|
|
TestRunner runner; |
26 |
|
|
// |
27 |
|
|
// add the RangeTestCase suite of tests to the runner |
28 |
|
|
runner.addTest ("Bruce", BruceTestCase::suite()); |
29 |
|
|
runner.addTest ("BruceFactory", BruceFactoryTestCase::suite()); |
30 |
|
|
|
31 |
|
|
// actually run the unit tests. |
32 |
|
|
runner.run (argc, argv); |
33 |
|
|
return 0; |
34 |
|
|
} |
35 |
|
|
|