summaryrefslogtreecommitdiff
path: root/examples/cppunittest/TestCaseTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cppunittest/TestCaseTest.cpp')
-rw-r--r--examples/cppunittest/TestCaseTest.cpp29
1 files changed, 16 insertions, 13 deletions
diff --git a/examples/cppunittest/TestCaseTest.cpp b/examples/cppunittest/TestCaseTest.cpp
index 5479c0e..91a3f22 100644
--- a/examples/cppunittest/TestCaseTest.cpp
+++ b/examples/cppunittest/TestCaseTest.cpp
@@ -130,19 +130,6 @@ TestCaseTest::testConstructorWithName()
void
-TestCaseTest::testDefaultRun()
-{
- MockTestCase test( "mocktest" );
- test.setExpectedSetUpCall();
- test.setExpectedRunTestCall();
- test.setExpectedTearDownCall();
-
- std::auto_ptr<CppUnit::TestResult> result( test.run() );
- test.verify();
-}
-
-
-void
TestCaseTest::testTwoRun()
{
MockTestCase test1( "mocktest1" );
@@ -156,3 +143,19 @@ TestCaseTest::testTwoRun()
m_testListener->verify();
}
+
+
+void
+TestCaseTest::testGetChildTestCount()
+{
+ CppUnit::TestCase test( "test" );
+ CPPUNIT_ASSERT_EQUAL( 0, test.getChildTestCount() );
+}
+
+
+void
+TestCaseTest::testGetChildTestAtThrow()
+{
+ CppUnit::TestCase test( "test" );
+ test.getChildTestAt( 0 );
+}