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

  1. #ifdef TEST
  2. #include <sendmoney.h>
  3. #include <unity.h>
  4. void setUp(void)
  5. {
  6. }
  7. void tearDown(void)
  8. {
  9. }
  10. // hier wird die Methode checkAccount getestet
  11. void test_sendmoney_NeedToImplement(void)
  12. {
  13. // Arrage
  14. int accountNumber = 1234567;
  15. int accountNumber2 = 5555557;
  16. bool expected;
  17. bool expected2;
  18. // Act
  19. expected = checkAccount(accountNumber);
  20. expected2 = checkAccount(accountNumber2);
  21. // Assert
  22. TEST_ASSERT_TRUE(expected);
  23. TEST_ASSERT_TRUE(expected2);
  24. }
  25. #endif // TEST