-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
27338d9
commit 3a3cdd4
Showing
3 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package dartzee.screen.game | ||
|
||
import dartzee.clickButton | ||
import dartzee.helper.AbstractTest | ||
import io.mockk.mockk | ||
import io.mockk.verify | ||
import org.junit.jupiter.api.Test | ||
|
||
class TestTutorialPanel: AbstractTest() { | ||
@Test | ||
fun `Should launch the game when ready button is pressed`() { | ||
val parentWindow = mockk<DartsGameScreen>(relaxed = true) | ||
val panel = TutorialPanel(parentWindow) | ||
panel.clickButton(text = "I'm ready - let's play!") | ||
|
||
verify { parentWindow.startNewGame() } | ||
} | ||
|
||
@Test | ||
fun `Should accurately record busts in the demo`() { | ||
val panel = TutorialPanel(mockk(relaxed = true)) | ||
} | ||
} |