public void NavigateBack_ValidMove_CorrectBoardState() { var pawn = empty_2x2_board.AddPiece(new Pawn(new Position(1, 0), white, Position.Up)); Chessboard board_before_move = new Chessboard(empty_2x2_board); empty_2x2_board.ExecuteAction(pawn.GetMoves(empty_2x2_board)[0]); empty_2x2_board.NavigateBack(); Assert.IsTrue(empty_2x2_board.CompareBoardStates(board_before_move)); }
public void Constructor_CreateBoardWithOtherBoard_Success() { empty_2x2_board.AddPiece(new Pawn(new Position(1, 0), white, Position.Up)); Chessboard new_board = new Chessboard(empty_2x2_board); Assert.IsTrue(new_board.CompareBoardStates(empty_2x2_board)); }