blob: bd1360d59abff6740cd5ac33ca9f14a307589e83 (
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
40
41
42
43
44
45
46
47
48
49
50
|
#ifndef _BASICAMOUNTTEST_H
#define _BASICAMOUNTTEST_H
#include "UnitTests.h"
class BasicAmountTest : public CPPUNIT_NS::TestCase
{
CPPUNIT_TEST_SUITE(BasicAmountTest);
CPPUNIT_TEST(testConstructors);
CPPUNIT_TEST(testNegation);
CPPUNIT_TEST(testAssignment);
CPPUNIT_TEST(testEquality);
CPPUNIT_TEST(testIntegerAddition);
CPPUNIT_TEST(testFractionalAddition);
CPPUNIT_TEST(testIntegerSubtraction);
CPPUNIT_TEST(testFractionalSubtraction);
CPPUNIT_TEST(testIntegerMultiplication);
CPPUNIT_TEST(testFractionalMultiplication);
CPPUNIT_TEST(testIntegerDivision);
CPPUNIT_TEST(testFractionalDivision);
CPPUNIT_TEST_SUITE_END();
public:
BasicAmountTest() {}
virtual ~BasicAmountTest() {}
virtual void setUp();
virtual void tearDown();
void testConstructors();
void testNegation();
void testAssignment();
void testEquality();
void testIntegerAddition();
void testFractionalAddition();
void testIntegerSubtraction();
void testFractionalSubtraction();
void testIntegerMultiplication();
void testFractionalMultiplication();
void testIntegerDivision();
void testFractionalDivision();
private:
BasicAmountTest(const BasicAmountTest ©);
void operator=(const BasicAmountTest ©);
};
#endif /* _BASICAMOUNTTEST_H */
|