From eee4de7853bd9575392017e6560fedf37a5ed8bc Mon Sep 17 00:00:00 2001 From: lyrjie Date: Fri, 10 Jan 2020 14:47:16 +0300 Subject: [PATCH] Added tests for development-only toggles --- tests/src/com/unciv/UncivGameTests.kt | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/src/com/unciv/UncivGameTests.kt diff --git a/tests/src/com/unciv/UncivGameTests.kt b/tests/src/com/unciv/UncivGameTests.kt new file mode 100644 index 0000000000..94f1c43c7e --- /dev/null +++ b/tests/src/com/unciv/UncivGameTests.kt @@ -0,0 +1,29 @@ +package com.unciv + +import com.unciv.testing.GdxTestRunner +import org.junit.Assert +import org.junit.Test +import org.junit.runner.RunWith + +@RunWith(GdxTestRunner::class) +class UncivGameTests { + + @Test + fun `viewEntireMapForDebug is set to false`() { + val uncivGame = UncivGame("desktop") + Assert.assertFalse(uncivGame.viewEntireMapForDebug) + } + + @Test + fun `superchargedForDebug is set to false`() { + val uncivGame = UncivGame("desktop") + Assert.assertFalse(uncivGame.superchargedForDebug) + } + + @Test + fun `rewriteTranslationFiles is set to false`() { + val uncivGame = UncivGame("desktop") + Assert.assertFalse(uncivGame.rewriteTranslationFiles) + } + +} \ No newline at end of file