|
@ -13,3 +13,13 @@ void test_compileTest_shutBeAllwaysTrue(void){ |
|
|
TEST_ASSERT_EQUAL_INT(1,1); |
|
|
TEST_ASSERT_EQUAL_INT(1,1); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_welcome_message(void){ |
|
|
|
|
|
// arrange |
|
|
|
|
|
char* expectedMessage = "Hallo und willkommen zu unserem TicTacToe Spiel. Anbei die Anleitung:\n"; |
|
|
|
|
|
|
|
|
|
|
|
// act |
|
|
|
|
|
char* message = getWelcomeMessage(); |
|
|
|
|
|
|
|
|
|
|
|
// aassert |
|
|
|
|
|
TEST_ASSERT_EQUAL_STRING(expectedMessage, message); |
|
|
|
|
|
} |