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"); }
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"); }