Browse Source

Finished Ghost wall obstruction test, but commented out because of unimplemented code

remotes/origin/playerRefactoring
fdai7753 11 months ago
parent
commit
fd2a77a54e
  1. 14
      src/test/java/pacmanTests/GhostTest.java

14
src/test/java/pacmanTests/GhostTest.java

@ -24,10 +24,20 @@ class GhostTest {
// assert
assertThat(position).isEqualTo(expectedPosition);
}
@Test
void Ghosts_wall_obstructsMovement() {
// arrange
//GameManager gameManager = new GameManager();
//Ghost ghost = gameManager.ghosts[0];
//ghost.position = new Vector2(2,2);
//Vector2 direction = new Vector2(-1,0);
//Vector2 expectedPosition = new Vector2(2,2);
// act
//ghost.move(direction);
//Vector2 position = ghost.position;
// assert
//assertThat(position).isEqualTo(expectedPosition);
}
}
Loading…
Cancel
Save