Пример #1
0
 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));
 }
Пример #2
0
 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));
 }
Пример #3
0
 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));
 }