diff --git a/src/test/java/pacmanTests/VisualizerPlainTextUltraTest.java b/src/test/java/pacmanTests/VisualizerPlainTextUltraTest.java index e4d61bb..052d9c5 100644 --- a/src/test/java/pacmanTests/VisualizerPlainTextUltraTest.java +++ b/src/test/java/pacmanTests/VisualizerPlainTextUltraTest.java @@ -106,4 +106,22 @@ class VisualizerPlainTextUltraTest { // assert assertThat(result).endsWith(expectedEnd); } + + @Test + void VisualizerPlainTextUtlra_score_isVisualized() { + // arrange + + GameManager gameManager = new GameManager(); + VisualizerPlainTextUltra vptu = new VisualizerPlainTextUltra(gameManager); + vptu.showScore = true; + + gameManager.score = 100; + + // act + vptu.Update(); + String result = (String)vptu.GetOutput(); + + // assert + assertThat(result).startsWith("\nSCORE: 100"); + } }