ChessDotNet.Tests.ChessGameTests.TestValidMoveWhitePawn_Capture C# (CSharp) 메소드

TestValidMoveWhitePawn_Capture() 개인적인 메소드

private TestValidMoveWhitePawn_Capture ( ) : void
리턴 void
        public static void TestValidMoveWhitePawn_Capture()
        {
            ChessGame cb = new ChessGame();
            Move move1 = new Move(new Position(File.E, 2), new Position(File.E, 4), Player.White);
            Move move2 = new Move(new Position(File.D, 7), new Position(File.D, 5), Player.Black);
            Move move3 = new Move(new Position(File.E, 4), new Position(File.D, 5), Player.White);

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

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