public void TestMovePacmanFalse() { Point old = new Point(4, 4); this.pacmanModelMock.Object.Pacman = old; this.pacmanModelMock.Object.RedGhost = old; PacmanLogic pacmanLogic = new PacmanLogic(this.pacmanModelMock.Object, this.lvl, false); pacmanLogic.MovePacman(2, 2); Assert.AreEqual(old, this.pacmanModelMock.Object.Pacman); }
public void TestMovePacmanTrue() { Point expected = new Point(4, 3); this.pacmanModelMock.Object.Pacman = new Point(4, 4); this.pacmanModelMock.Object.RedGhost = new Point(5, 5); PacmanLogic pacmanLogic = new PacmanLogic(this.pacmanModelMock.Object, this.lvl, false); pacmanLogic.MovePacman(4, 3); Assert.AreEqual(expected, this.pacmanModelMock.Object.Pacman); }