|
@ -17,11 +17,10 @@ class GameManagerTest { |
|
|
|
|
|
|
|
|
// act |
|
|
// act |
|
|
|
|
|
|
|
|
int initialTime = gameManager.time; |
|
|
|
|
|
|
|
|
int expectedUpdatedTime = gameManager.time + 1; |
|
|
gameManager.Update(); |
|
|
gameManager.Update(); |
|
|
int updatedTime = gameManager.time; |
|
|
int updatedTime = gameManager.time; |
|
|
|
|
|
|
|
|
int expectedUpdatedTime = initialTime + 1; |
|
|
|
|
|
|
|
|
|
|
|
// assert |
|
|
// assert |
|
|
assertThat(expectedUpdatedTime).isEqualTo(updatedTime); |
|
|
assertThat(expectedUpdatedTime).isEqualTo(updatedTime); |
|
|