public void TestBlackPawnGetMoves() { var target = new Pawn(false, "Bd2"); var board = new Board(); var tempList = new List<String> {"Cd2", "Bd3"}; Assert.AreEqual(tempList, target.GetMoves(board)); }
public void TestBlackPawnTakeForwardRight() { var target = new Pawn(false, "Bd2"); var board = new Board(); board.GetCell("Be3").AddPiece(new Pawn(true, "Be3")); var tempList = new List<String> {"Cd2", "Bd3", "Be3"}; Assert.AreEqual(tempList, target.GetMoves(board)); }
public void TestwhitePawnTakeForwardLeft() { var target = new Pawn(true, "Dc4"); var board = new Board(); board.GetCell("Dd3").AddPiece(new Pawn(false, "Dd3")); var tempList = new List<String> {"Cc4", "Dc3", "Dd3"}; Assert.AreEqual(tempList, target.GetMoves(board)); }
public void TestPiecegetMoves() { var target = new Pawn(true, "Ee4"); var board = new Board(); var tempList = new List<String> {"De4", "Ee3"}; Assert.AreEqual(tempList, target.GetMoves(board)); }