Browse Source

add test for the getAvailableAccountBalance method

remotes/origin/feature/send-money
fdai6618 2 years ago
parent
commit
042cb4214f
  1. 16
      test/test_sendmoney.c

16
test/test_sendmoney.c

@ -29,4 +29,20 @@ void test_sendmoney_NeedToImplement(void)
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
Loading…
Cancel
Save