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
34 lines
585 B
#ifdef TEST
|
|
|
|
#include "unity.h"
|
|
|
|
#include "updateCustomerAccountBalance.h"
|
|
|
|
void setUp(void)
|
|
{
|
|
}
|
|
|
|
void tearDown(void)
|
|
{
|
|
}
|
|
|
|
void test_updateAvailableAccountBalanceSuccess(void){
|
|
|
|
int id1 = 1234;
|
|
int id2 = 1327;
|
|
int id3 = 1666;
|
|
|
|
int newBalance1=500;
|
|
int newBalance2=800;
|
|
int newBalance3=700;
|
|
|
|
bool results1=updateAvailableAccountBalance(id1,newBalance1);
|
|
bool results2=updateAvailableAccountBalance(id2,newBalance2);
|
|
bool results3=updateAvailableAccountBalance(id3,newBalance3);
|
|
|
|
TEST_ASSERT_TRUE(results1);
|
|
TEST_ASSERT_TRUE(results2);
|
|
TEST_ASSERT_TRUE(results3);
|
|
|
|
}
|
|
#endif
|