|
|
@ -50,5 +50,16 @@ class CellTest { |
|
|
|
assertThat(expectedScore).isEqualTo(resultingScore); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void cell_triggerItem_405strawberryScore() { |
|
|
|
// arrange |
|
|
|
GameManager gameManager = new GameManager(); |
|
|
|
Cell cell = gameManager.map.GetCell(new Vector2(0,0)); |
|
|
|
cell.type = "strawberry"; |
|
|
|
int expectedScore = 405; |
|
|
|
// act |
|
|
|
cell.triggerItem(); |
|
|
|
int resultingScore = gameManager.score; |
|
|
|
// assert |
|
|
|
assertThat(expectedScore).isEqualTo(resultingScore); |
|
|
|
} |
|
|
|
} |