|
@ -59,6 +59,18 @@ void test_command_startGame(void){ |
|
|
// act |
|
|
// act |
|
|
int actualState = handeCommand( input ); |
|
|
int actualState = handeCommand( input ); |
|
|
|
|
|
|
|
|
|
|
|
// assert |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT( expectedState, actualState ); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_command_startMenu(void){ |
|
|
|
|
|
// arrange |
|
|
|
|
|
int expectedState = 0; |
|
|
|
|
|
char* input = "start menu"; |
|
|
|
|
|
|
|
|
|
|
|
// act |
|
|
|
|
|
int actualState = handeCommand( input ); |
|
|
|
|
|
|
|
|
// assert |
|
|
// assert |
|
|
TEST_ASSERT_EQUAL_INT( expectedState, actualState ); |
|
|
TEST_ASSERT_EQUAL_INT( expectedState, actualState ); |
|
|
} |
|
|
} |