public void TestVariantEnd() { Piece[][] board = new Piece[8][] { new[] { rb, nb, bb, qb, kb, bb, nb, rb }, new[] { o, pb, pb, pb, o, pb, pb, pb }, new[] { pb, o, o, o, pb, o, o, o }, new[] { o, o, o, o, o, o, o, o }, new[] { o, o, o, o, o, o, o, o }, new[] { o, o, o, o, o, pw, qw, o }, new[] { pw, pw, pw, pw, o, pw, pw, pw }, new[] { rw, nw, bw, o, kw, bw, nw, rw } }; AtomicChessGame game = new AtomicChessGame(board, Player.White); game.ApplyMove(new Move("F3", "F7", Player.White), true); Assert.True(game.KingIsGone(Player.Black)); Assert.True(game.IsWinner(Player.White)); }