|
@ -94,6 +94,20 @@ class CellTest { |
|
|
assertThat(expectedScore).isEqualTo(resultingScore); |
|
|
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 |
|
|
@Test |
|
|
void cell_triggerItem_3crystalMoveSpeed() { |
|
|
void cell_triggerItem_3crystalMoveSpeed() { |
|
|
// arrange |
|
|
// arrange |
|
|