|
|
@ -59,6 +59,18 @@ void test_command_startGame(void){ |
|
|
|
// act |
|
|
|
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 |
|
|
|
TEST_ASSERT_EQUAL_INT( expectedState, actualState ); |
|
|
|
} |