|
@ -44,5 +44,15 @@ void test_getAvailableAccountBalance(void) |
|
|
// Assert |
|
|
// Assert |
|
|
TEST_ASSERT_EQUAL(expected, result); |
|
|
TEST_ASSERT_EQUAL(expected, result); |
|
|
} |
|
|
} |
|
|
|
|
|
// hier wird die Methode getAmount() getestet |
|
|
|
|
|
void test_getAmount(void) |
|
|
|
|
|
{ |
|
|
|
|
|
// Arrage |
|
|
|
|
|
float expected = 500.1; |
|
|
|
|
|
|
|
|
|
|
|
float result = getAmount(expected); |
|
|
|
|
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL(expected, result); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#endif // TEST |
|
|
#endif // TEST |