public void HorizontalMoveNotVertical() { var m = new HorizontalMoveTemplate(); var s = new GameState(2, 2); Assert.IsFalse(m.CanApply(new Position(1, 1), new Position(1, 2), s)); }
public void HorizontalMovePathCheck() { var m = new HorizontalMoveTemplate(); var s = new GameState(3, 3); s[new Position(2, 1)] = new Piece(); Assert.IsFalse(m.CanApply(new Position(1, 1), new Position(3, 1), s)); }
public void HorizontalMoveBackwards() { var m = new HorizontalMoveTemplate(); var s = new GameState(2, 2); Assert.IsTrue(m.CanApply(new Position(2, 1), new Position(1, 1), s)); }