Beispiel #1
0
 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));
 }
Beispiel #2
0
 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));
 }
Beispiel #3
0
 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));
 }