ChessDotNet.Tests.FenConvertTests.TestHalfmoveClockAndFullmoveNumber C# (CSharp) 메소드

TestHalfmoveClockAndFullmoveNumber() 개인적인 메소드

private TestHalfmoveClockAndFullmoveNumber ( ) : void
리턴 void
        public static void TestHalfmoveClockAndFullmoveNumber()
        {
            ChessGame game = new ChessGame();
            game.ApplyMove(new Move("E2", "E4", Player.White), true);
            game.ApplyMove(new Move("E7", "E5", Player.Black), true);
            game.ApplyMove(new Move("E1", "E2", Player.White), true);
            game.ApplyMove(new Move("E8", "E7", Player.Black), true);
            game.ApplyMove(new Move("E2", "D3", Player.White), true);
            game.ApplyMove(new Move("E7", "D6", Player.Black), true);
            game.ApplyMove(new Move("D3", "C3", Player.White), true);
            game.ApplyMove(new Move("D6", "C6", Player.Black), true);
            game.ApplyMove(new Move("C3", "B3", Player.White), true);
            game.ApplyMove(new Move("C6", "B6", Player.Black), true);
            game.ApplyMove(new Move("B3", "A4", Player.White), true);
            game.ApplyMove(new Move("B6", "C5", Player.Black), true);
            game.ApplyMove(new Move("F1", "C4", Player.White), true);
            string fen = game.GetFen();
            Assert.AreEqual("rnbq1bnr/pppp1ppp/8/2k1p3/K1B1P3/8/PPPP1PPP/RNBQ2NR b - - 11 7", fen);
            game.ApplyMove(new Move("C5", "C4", Player.Black), true);
            fen = game.GetFen();
            Assert.AreEqual("rnbq1bnr/pppp1ppp/8/4p3/K1k1P3/8/PPPP1PPP/RNBQ2NR w - - 0 8", fen);
            game.ApplyMove(new Move("A4", "A5", Player.White), true);
            game.ApplyMove(new Move("H7", "H5", Player.Black), true);
            fen = game.GetFen();
            Assert.AreEqual("rnbq1bnr/pppp1pp1/8/K3p2p/2k1P3/8/PPPP1PPP/RNBQ2NR w - h6 0 9", fen);
        }