Ejemplo n.º 1
0
        public void BlockedMove(XY DxDy)
        {
            var actor         = new AtlasWarriorsGame.Actor(ClosedDungeon);
            var startLocation = actor.Location;

            actor.Move(DxDy);
            Assert.AreEqual(startLocation.X, actor.Location.X, "X failed to block");
            Assert.AreEqual(startLocation.Y, actor.Location.Y, "Y failed to block");
        }
Ejemplo n.º 2
0
        public void OpenMove(XY DxDy)
        {
            var actor         = new AtlasWarriorsGame.Actor(OpenDungeon);
            var startLocation = actor.Location;

            actor.Move(DxDy);
            Assert.AreEqual(startLocation.X + DxDy.X, actor.Location.X, "X movement incorrect");
            Assert.AreEqual(startLocation.Y + DxDy.Y, actor.Location.Y, "Y movement incorrect");
        }