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

TestValidMoveBlackPawn_Capture() private method

private TestValidMoveBlackPawn_Capture ( ) : void
return void
        public static void TestValidMoveBlackPawn_Capture()
        {
            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.E, 7), new Position(File.E, 5), Player.Black);
            Move move3 = new Move(new Position(File.D, 2), new Position(File.D, 4), Player.White);
            Move move4 = new Move(new Position(File.E, 5), new Position(File.D, 4), Player.Black);

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

            Assert.True(cb.IsValidMove(move4));
        }
ChessGameTests