You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#ifdef TEST
#include <sendmoney.h>
#include <unity.h>
void setUp(void) { }
void tearDown(void) { } // hier wird die Methode checkAccount getestet
void test_sendmoney_NeedToImplement(void) { // Arrage
int accountNumber = 1234567; int accountNumber2 = 5555557; bool expected; bool expected2; // Act
expected = checkAccount(accountNumber); expected2 = checkAccount(accountNumber2);
// Assert
TEST_ASSERT_TRUE(expected); 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); } // 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
|