public void MovePacMan_ValidWestMove_Pass() { PlayPacman sut = new PlayPacman(_Logger); var pacmanItem = new Pacman() { X = 3, Y = 3, direction = Direction.WEST }; var movedItem = sut.MovePacMan(pacmanItem); Assert.AreEqual(pacmanItem.X, 2); }
public void MovePacMan_InvalidValidMove_Pass() { PlayPacman sut = new PlayPacman(_Logger); var pacmanItem = new Pacman() { X = 1, Y = 1, direction = Direction.NORTH }; var movedItem = sut.MovePacMan(pacmanItem); Assert.AreNotEqual(pacmanItem.Y, 1); }
public void MovePacMan_ValidSouthMove_Pass() { PlayPacman sut = new PlayPacman(_Logger); var pacmanItem = new Pacman() { X = 2, Y = 2, direction = Direction.SOUTH }; var movedItem = sut.MovePacMan(pacmanItem); Assert.AreEqual(pacmanItem.Y, 1); }