|
@ -29,4 +29,20 @@ void test_sendmoney_NeedToImplement(void) |
|
|
TEST_ASSERT_TRUE(expected2); |
|
|
TEST_ASSERT_TRUE(expected2); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// hier wird die Methode getAvailableAccountBalance()getestet |
|
|
|
|
|
void test_getAvailableAccountBalance(void) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
// Arrage |
|
|
|
|
|
|
|
|
|
|
|
double expected = 500.0; |
|
|
|
|
|
|
|
|
|
|
|
// Act |
|
|
|
|
|
|
|
|
|
|
|
double result = getAvailableAccountBalance(expected1); |
|
|
|
|
|
|
|
|
|
|
|
// Assert |
|
|
|
|
|
TEST_ASSERT_EQUAL(expected, result); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#endif // TEST |
|
|
#endif // TEST |