LanguageTest.java added new Methods

This commit is contained in:
Andrin Fassbind 2021-10-09 16:18:22 +02:00
parent 4fd4727068
commit 105471350d
2 changed files with 18 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class GamefieldTest {
assertEquals(0, gamefield.getField(9));
assertEquals(2, gamefield.countSetFields());
gamefield.outputField();
}
@Test

View File

@ -1,5 +1,6 @@
import org.junit.jupiter.api.Test;
class LanguageTest {
private Language deutsch = new Language("de");
@ -9,7 +10,9 @@ class LanguageTest {
@Test
void setOutputLanguage() {
english.setOutputLanguage("de");
deutsch.setOutputLanguage("en");
english.setOutputLanguage("vn");
}
@Test
@ -46,4 +49,18 @@ class LanguageTest {
english.outputWrongFieldSelected();
viet.outputWrongFieldSelected();
}
@Test
void outputGameStartedText() {
deutsch.outputGameStartedText();
english.outputGameStartedText();
viet.outputGameStartedText();
}
@Test
void outputMoveText() {
deutsch.outputMoveText(1,1);
english.outputMoveText(3,1);
viet.outputMoveText(2,2);
}
}