ChessDotNet.Tests.ChessGameTests.TestValidMoveBlackKingDiagonal C# (CSharp) Method

TestValidMoveBlackKingDiagonal() private method

private TestValidMoveBlackKingDiagonal ( ) : void
return void
        public static void TestValidMoveBlackKingDiagonal()
        {
            ChessGame cb = new ChessGame();
            Move move1 = new Move(new Position(File.A, 2), new Position(File.A, 3), Player.White);
            Move move2 = new Move(new Position(File.F, 7), new Position(File.F, 6), Player.Black);
            Move move3 = new Move(new Position(File.H, 2), new Position(File.H, 3), Player.White);
            Move move4 = new Move(new Position(File.E, 8), new Position(File.F, 7), Player.Black);

            cb.ApplyMove(move1, true);
            cb.ApplyMove(move2, true);
            cb.ApplyMove(move3, true);

            Assert.True(cb.IsValidMove(move4), "move4 should be valid");
        }
ChessGameTests