コード例 #1
0
ファイル: Board.cs プロジェクト: kevinrjones/chessengine
            public void ShouldSetNonOffBoardSquaresToOffEmpty()
            {
                var board = new Game.Board();

                board.ResetBoard();

                board.Squares[21].Should().BeOfType <EmptyPiece>();
                board.Squares[28].Should().BeOfType <EmptyPiece>();
                board.Squares[31].Should().BeOfType <EmptyPiece>();
                board.Squares[38].Should().BeOfType <EmptyPiece>();
                board.Squares[81].Should().BeOfType <EmptyPiece>();
                board.Squares[88].Should().BeOfType <EmptyPiece>();
                board.Squares[91].Should().BeOfType <EmptyPiece>();
                board.Squares[98].Should().BeOfType <EmptyPiece>();
            }
コード例 #2
0
ファイル: Board.cs プロジェクト: kevinrjones/chessengine
            public void ShouldSetOffBoardSquaresToOffBoard()
            {
                var board = new Game.Board();

                board.ResetBoard();

                board.Squares[0].Should().BeOfType <OffBoardPiece>();
                board.Squares[9].Should().BeOfType <OffBoardPiece>();
                board.Squares[10].Should().BeOfType <OffBoardPiece>();
                board.Squares[19].Should().BeOfType <OffBoardPiece>();
                board.Squares[20].Should().BeOfType <OffBoardPiece>();
                board.Squares[29].Should().BeOfType <OffBoardPiece>();
                board.Squares[110].Should().BeOfType <OffBoardPiece>();
                board.Squares[119].Should().BeOfType <OffBoardPiece>();
            }