From 042cb4214fee08d80e34a62997a57de56b7c005a Mon Sep 17 00:00:00 2001 From: fdai6618 <74294567+fdai6618@users.noreply.github.com> Date: Sat, 4 Feb 2023 11:27:22 +0100 Subject: [PATCH] add test for the getAvailableAccountBalance method --- test/test_sendmoney.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/test_sendmoney.c b/test/test_sendmoney.c index 246407c..49e18d0 100644 --- a/test/test_sendmoney.c +++ b/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