public void Test_AddFigureWhitValidFigureAndInvalidPosition()
        {
            Board testBoard = new Board();
            Position position = new Position(-61, 'q');
            Pawn testPawn = new Pawn(ChessColor.White);

            testBoard.AddFigure(testPawn, position);
        }
        public void Test_AddFigureWhitInvalidFigureAndValidPosition()
        {
            Board testBoard = new Board();
            Position position = new Position(5, 'a');
            Pawn testPawn = null;

            testBoard.AddFigure(testPawn, position);
        }
        public void Test_GetFigureAtPositionWhitValidPosition()
        {
            Board testBoard = new Board();
            Position position = new Position(8, 'c');
            Bishop testBishop = new Bishop(ChessColor.White);

            testBoard.AddFigure(testBishop, position);

            Assert.AreSame(testBishop, testBoard.GetFigureAtPosition(position));
        }
        public void Test_AddFigureWhitValidData()
        {
            Board testBoard = new Board();
            Position position = new Position(5, 'a');
            Pawn testPawn = new Pawn(ChessColor.White);

            testBoard.AddFigure(testPawn, position);

            Assert.AreSame(testPawn, testBoard.GetFigureAtPosition(position));
        }
        public void Test_MoveFigureAtPositionWhitInvalidFromPosition()
        {
            Board testBoard = new Board();
            Position fromPosition = new Position(2, 'a');
            Position invalidFromPosition = new Position(0, '1');
            Position toPosition = new Position(4, 'a');
            Pawn testPawn = new Pawn(ChessColor.White);

            testBoard.AddFigure(testPawn, fromPosition);

            testBoard.MoveFigureAtPosition(testPawn, invalidFromPosition, toPosition);
        }
        public void Test_RemoveFigureWhitValidPosition()
        {
            Board testBoard = new Board();
            Position position = new Position(8, 'c');
            Bishop testBishop = new Bishop(ChessColor.White);

            testBoard.AddFigure(testBishop, position);

            testBoard.RemoveFigure(position);

            Assert.IsNull(testBoard.GetFigureAtPosition(position));
        }
        public void Test_MoveFigureAtPositionWhitValidData()
        {
            Board testBoard = new Board();
            Position fromPosition = new Position(2, 'a');
            Position toPosition = new Position(4, 'a');
            Pawn testPawn = new Pawn(ChessColor.White);

            testBoard.AddFigure(testPawn, fromPosition);

            testBoard.MoveFigureAtPosition(testPawn, fromPosition, toPosition);

            bool result = (testPawn == testBoard.GetFigureAtPosition(toPosition)) &&
                (testBoard.GetFigureAtPosition(fromPosition) == null);

            Assert.IsTrue(result);
        }