mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-20 19:56:51 +01:00
Added tests for development-only toggles
This commit is contained in:
parent
2daf27278d
commit
eee4de7853
29
tests/src/com/unciv/UncivGameTests.kt
Normal file
29
tests/src/com/unciv/UncivGameTests.kt
Normal 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)
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user