public void Move_Pacman() { Pacman pacman = new Pacman(); pacman.CurrentDirection = Direction.Right; pacman.ImageCurrentLocation = new Point(9, 10); pacman.Move(Direction.Right); Assert.AreEqual(pacman.ImageCurrentLocation, new Point(10, 10)); }
public void Can_Pacman_Move() { Pacman pacman = new Pacman(); pacman.CurrentDirection = Direction.Right; pacman.ImageCurrentLocation = new Point(9, 10); Point point = new Point(10, 10); List<Point> _pathPoints = new List<Point>(); _pathPoints.Add(point); Assert.IsTrue(pacman.CanMove( pacman.ImageCurrentLocation, pacman.CurrentDirection, _pathPoints)); }
private IPacman CreateCommonPacman() { var pacMan = new Pacman() { ImageStartingLocation = new Point(220, 416), ImageCurrentLocation = new Point(220, 416), Alive = true, Lives = 3, }; pacMan.GeneratePacman(); return pacMan; }