diff --git a/src/test/java/pacmanTests/CellTest.java b/src/test/java/pacmanTests/CellTest.java index afa318c..790f5ed 100644 --- a/src/test/java/pacmanTests/CellTest.java +++ b/src/test/java/pacmanTests/CellTest.java @@ -87,4 +87,17 @@ class CellTest { // assert assertThat(expectedScore).isEqualTo(resultingScore); } + + void cell_triggerItem_3crystalMoveSpeed() { + // arrange + GameManager gameManager = new GameManager(); + Cell cell = gameManager.map.GetCell(new Vector2(0,0)); + cell.type = "crystal"; + int expectedMoveSpeed = 3; + // act + cell.triggerItem(); + int resultingMoveSpeed = gameManager.moveSpeed; + // assert + assertThat(expectedMoveSpeed).isEqualTo(resultingMoveSpeed); + } }