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.
32 lines
514 B
32 lines
514 B
#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);
|
|
}
|
|
|
|
#endif // TEST
|