public void VerticalMoveNotHorizontal() { var m = new VerticalMoveTemplate(); var s = new GameState(2, 2); Assert.IsFalse(m.CanApply(new Position(1, 1), new Position(2, 1), s)); }
public void VerticalMovePathCheck() { var m = new VerticalMoveTemplate(); var s = new GameState(3, 3); s[new Position(1, 2)] = new Piece(); Assert.IsFalse(m.CanApply(new Position(1, 1), new Position(1, 3), s)); }
public void VerticalMoveBackwards() { var m = new VerticalMoveTemplate(); var s = new GameState(2, 2); Assert.IsTrue(m.CanApply(new Position(1, 2), new Position(1, 1), s)); }