diff --git a/src/test/java/pacmanTests/CellTest.java b/src/test/java/pacmanTests/CellTest.java index 98c26e1..58c0c35 100644 --- a/src/test/java/pacmanTests/CellTest.java +++ b/src/test/java/pacmanTests/CellTest.java @@ -94,6 +94,20 @@ class CellTest { assertThat(expectedScore).isEqualTo(resultingScore); } + @Test + void cell_triggerItem_506crystalScore() { + // arrange + GameManager gameManager = new GameManager(); + Cell cell = gameManager.map.getCell(new Vector2(0,0)); + cell.type = "crystal"; + int expectedScore = 506; + // act + cell.triggerItem(); + int resultingScore = gameManager.score; + // assert + assertThat(expectedScore).isEqualTo(resultingScore); + } + @Test void cell_triggerItem_3crystalMoveSpeed() { // arrange