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

TestBlackCheckmated() private method

private TestBlackCheckmated ( ) : void
return void
        public static void TestBlackCheckmated()
        {
            ChessGame cb = new ChessGame();
            cb.ApplyMove(new Move("E2", "E4", Player.White), true);
            cb.ApplyMove(new Move("E7", "E5", Player.Black), true);
            cb.ApplyMove(new Move("F1", "C4", Player.White), true);
            cb.ApplyMove(new Move("D7", "D6", Player.Black), true);
            cb.ApplyMove(new Move("D1", "F3", Player.White), true);
            cb.ApplyMove(new Move("H7", "H6", Player.Black), true);
            Assert.AreNotEqual(cb.ApplyMove(new Move("F3", "F7", Player.White), false), MoveType.Invalid);

            Assert.True(cb.IsCheckmated(Player.Black));
            Assert.True(cb.IsWinner(Player.White));
        }
ChessGameTests