Esempio n. 1
0
            public void ShouldHashInAnEnPassentSquare()
            {
                var       board           = new Game.Board();
                const int enPassantSquare = 42;
                var       pawn1           = new Pawn {
                    Square = 1
                };

                board.HashEnPassant(enPassantSquare);
                board.HashPiece(pawn1);

                board.PositionKey.Should().NotBe(HashPawnSquareOne);
                board.HashEnPassant(enPassantSquare);
                board.PositionKey.Should().Be(HashPawnSquareOne);
            }