Add use question test
This commit is contained in:
parent
56fd3ceb51
commit
0b4c68dc95
1 changed files with 16 additions and 0 deletions
|
@ -258,6 +258,22 @@ class GameControllerTest {
|
|||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testSwitchToQuestionWithUseQuestionOff() {
|
||||
levelFacadeOf(3, 3, 1, 200L).run {
|
||||
plantMinesExcept(3)
|
||||
useQuestionMark(false)
|
||||
|
||||
with(getArea(7)) {
|
||||
switchMark()
|
||||
switchMark()
|
||||
assertTrue(mark.isNone())
|
||||
}
|
||||
|
||||
field.forEach { assertFalse(it.mark.isQuestion()) }
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testSwitchBackToEmpty() {
|
||||
levelFacadeOf(3, 3, 1, 200L).run {
|
||||
|
|
Loading…
Reference in a new issue