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

TestValidMoveWhiteRookH() private method

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

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

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