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.

34 lines
585 B

  1. #ifdef TEST
  2. #include "unity.h"
  3. #include "updateCustomerAccountBalance.h"
  4. void setUp(void)
  5. {
  6. }
  7. void tearDown(void)
  8. {
  9. }
  10. void test_updateAvailableAccountBalanceSuccess(void){
  11. int id1 = 1234;
  12. int id2 = 1327;
  13. int id3 = 1666;
  14. int newBalance1=500;
  15. int newBalance2=800;
  16. int newBalance3=700;
  17. bool results1=updateAvailableAccountBalance(id1,newBalance1);
  18. bool results2=updateAvailableAccountBalance(id2,newBalance2);
  19. bool results3=updateAvailableAccountBalance(id3,newBalance3);
  20. TEST_ASSERT_TRUE(results1);
  21. TEST_ASSERT_TRUE(results2);
  22. TEST_ASSERT_TRUE(results3);
  23. }
  24. #endif