From 105471350dcef9492894df985b6370d4cd11e12a Mon Sep 17 00:00:00 2001 From: Andrin Fassbind Date: Sat, 9 Oct 2021 16:18:22 +0200 Subject: [PATCH] LanguageTest.java added new Methods --- test/GamefieldTest.java | 2 +- test/LanguageTest.java | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/test/GamefieldTest.java b/test/GamefieldTest.java index ea1858d..0478d2c 100644 --- a/test/GamefieldTest.java +++ b/test/GamefieldTest.java @@ -22,7 +22,7 @@ class GamefieldTest { assertEquals(0, gamefield.getField(9)); assertEquals(2, gamefield.countSetFields()); - gamefield.outputField(); + } @Test diff --git a/test/LanguageTest.java b/test/LanguageTest.java index b394b74..ca54cec 100644 --- a/test/LanguageTest.java +++ b/test/LanguageTest.java @@ -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); + } } \ No newline at end of file