예제 #1
0
        public void MakeNextMove_QueenChessPiece_PossibleCellPositions(string cellPosition)
        {
            // Arrange
            ChessBoard.ChessBoard chessBoard = new ChessBoard.ChessBoard();
            ChessBoard.Queen      queen      = new ChessBoard.Queen();

            // Act
            var possibleMoves = chessBoard.MakeNextMove(queen, cellPosition);

            // Assert
            Assert.DoesNotContain(cellPosition, possibleMoves);
        }
예제 #2
0
        public void MakeNextMove_BishopChessPiece_PossibleCellPositions(string cellPosition)
        {
            // Arrange
            ChessBoard.ChessBoard chessBoard = new ChessBoard.ChessBoard();
            ChessBoard.Bishop     bishop     = new ChessBoard.Bishop();

            // Act
            var possibleMoves = chessBoard.MakeNextMove(bishop, cellPosition);

            // Assert
            Assert.DoesNotContain(cellPosition, possibleMoves);
        }
예제 #3
0
        public void MakeNextMove_RookChessPiece_PossibleCellPositions(string cellPosition)
        {
            // Arrange
            ChessBoard.ChessBoard chessBoard = new ChessBoard.ChessBoard();
            ChessBoard.Rook       rook       = new ChessBoard.Rook();

            // Act
            var possibleMoves = chessBoard.MakeNextMove(rook, cellPosition);

            // Assert
            Assert.DoesNotContain(cellPosition, possibleMoves);
        }
예제 #4
0
        public void MakeNextMove_KingChessPiece_PossibleCellPositions(string cellPosition)
        {
            // Arrange
            ChessBoard.ChessBoard chessBoard = new ChessBoard.ChessBoard();
            ChessBoard.King       king       = new ChessBoard.King();

            // Act
            var possibleMoves = chessBoard.MakeNextMove(king, cellPosition);

            // Assert
            Assert.DoesNotContain(cellPosition, possibleMoves);
        }