LanguageTest.java added new Methods
This commit is contained in:
parent
4fd4727068
commit
105471350d
|
@ -22,7 +22,7 @@ class GamefieldTest {
|
|||
assertEquals(0, gamefield.getField(9));
|
||||
|
||||
assertEquals(2, gamefield.countSetFields());
|
||||
gamefield.outputField();
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue