My Project
 All Classes Files Functions
TestCalculations.cpp
Go to the documentation of this file.
1 
5 #include "TestCalculations.h"
6 
9 {
10  CalcObject = new Calculations();
11 }
12 
15 {
16  delete CalcObject;
17 }
18 
22 {
23  CPPUNIT_ASSERT(6 == CalcObject->Addition(3,3));
24 }
25 
29 {
30  CPPUNIT_ASSERT(6 == CalcObject->Multiplication(2,3));
31 }
32 
36 {
37  CPPUNIT_ASSERT(3 == CalcObject->Division(9,3));
38 }
39 
43 {
44  CPPUNIT_ASSERT(6 == CalcObject->Subtraction(9,3));
45 }
46 
47 
48 
49 
void setUp(void)
setUp() method that is executed before all the test cases that the test class includes ...
void testSubtraction(void)
float Division(float a, float b)
Calculations (Tested Class)
Definition: Calculations.h:5
float Addition(float a, float b)
float Multiplication(float a, float b)
float Subtraction(float a, float b)
void testMultiplication(void)
void tearDown(void)
tearDown() method that is executed after all the test cases that the test class includes ...
File containing the Test Class declaration.