Beispiel #1
0
 public void TestPieceGetMovesWithObstructionWhite()
 {
     var target = new Rook(true, "Cc3");
     _board.GetCell("Cb3").AddPiece(new Pawn(false, "Cb3"));
     var movesList = new List<String> { "Cc4", "Cc5", "Cc2", "Cc1", "Cb3", "Cd3", "Ce3", "Bc3", "Ac3", "Dc3", "Ec3" };
     Assert.AreEqual(movesList, target.GetMoves(_board));
 }
Beispiel #2
0
 public void TestPieceGetMoves()
 {
     var target = new Rook(true, "Cc3");
     var movesList = new List<String> { "Cc4", "Cc5", "Cc2", "Cc1", "Cb3", "Ca3", "Cd3", "Ce3", "Bc3", "Ac3","Dc3","Ec3" };
     Assert.AreEqual(movesList, target.GetMoves(_board));
 }