blob: c9d33a7851357728d7c5fe674bcd40ef2a395d2b (
plain)
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
32
33
34
35
36
37
38
39
|
#ifndef HELPERMACROSTEST_H
#define HELPERMACROSTEST_H
#include <cppunit/extensions/HelperMacros.h>
class HelperMacrosTest : public CppUnit::TestCase
{
CPPUNIT_TEST_SUITE( HelperMacrosTest );
CPPUNIT_TEST( testNoSubclassing );
CPPUNIT_TEST( testSubclassing );
CPPUNIT_TEST_SUITE_END();
public:
HelperMacrosTest();
virtual ~HelperMacrosTest();
virtual void setUp();
virtual void tearDown();
void testNoSubclassing();
void testSubclassing();
private:
HelperMacrosTest( const HelperMacrosTest © );
void operator =( const HelperMacrosTest © );
void checkTestResult( int expectedFailures,
int expectedErrors,
int expectedTestsRun );
private:
CppUnit::TestResult *m_result;
};
#endif // HELPERMACROSTEST_H
|