Exemplo n.º 1
0
        public void TestCalculateTargetCell4()
        {
            Game   game   = new Game();
            Player pacman = game.Player;
            Pinky  pinky  = (Pinky)game.Ghosts[1];

            pacman.Direction = Direction.Right;

            Cell cell = pinky.CalculateTargetCell();

            Assert.IsFalse(cell.IsWall());
        }
Exemplo n.º 2
0
        public void TestCalculateTargetCell1()
        {
            Game   game   = new Game();
            Player pacman = game.Player;
            Pinky  pinky  = (Pinky)game.Ghosts[1];

            pacman.Direction = Direction.Left;

            Cell cell = pinky.CalculateTargetCell();

            Assert.AreEqual(cell.GetX(), pacman.GetX() - 3);
            Assert.IsFalse(cell.IsWall());
        }