Added tests for development-only toggles

This commit is contained in:
lyrjie 2020-01-10 14:47:16 +03:00
parent 2daf27278d
commit eee4de7853

View File

@ -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)
}
}