summaryrefslogtreecommitdiff
path: root/examples/msvc6/HostApp/ExampleTestCase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/msvc6/HostApp/ExampleTestCase.cpp')
-rw-r--r--examples/msvc6/HostApp/ExampleTestCase.cpp19
1 files changed, 4 insertions, 15 deletions
diff --git a/examples/msvc6/HostApp/ExampleTestCase.cpp b/examples/msvc6/HostApp/ExampleTestCase.cpp
index e6e57a4..6cfd562 100644
--- a/examples/msvc6/HostApp/ExampleTestCase.cpp
+++ b/examples/msvc6/HostApp/ExampleTestCase.cpp
@@ -1,8 +1,11 @@
-
+#include <cppunit/extensions/TestSuiteBuilder.h>
#include "ExampleTestCase.h"
+CU_TEST_SUITE_REGISTRATION( ExampleTestCase );
+
+
void ExampleTestCase::example ()
{
@@ -53,17 +56,3 @@ void ExampleTestCase::testEquals ()
}
-
-
-
-CppUnit::Test *ExampleTestCase::suite ()
-{
- CppUnit::TestSuite *testSuite = new CppUnit::TestSuite ("ExampleTestCase");
-
- testSuite->addTest (new CppUnit::TestCaller <ExampleTestCase> ("anotherExample", anotherExample));
- testSuite->addTest (new CppUnit::TestCaller <ExampleTestCase> ("testAdd", testAdd));
- testSuite->addTest (new CppUnit::TestCaller <ExampleTestCase> ("testDivideByZero", testDivideByZero));
- testSuite->addTest (new CppUnit::TestCaller <ExampleTestCase> ("testEquals", testEquals));
-
- return testSuite;
-}