Пример #1
0
        public void CardDrawNoFlip_Opponent()
        {
            var effect = new CardDrawEffect()
            {
                Amount    = 1,
                Opponents = true
            };

            var player = new Player();

            player.Deck.Cards.Push(new PokemonCard());

            effect.Process(new GameField(), null, player, null);
            Assert.Empty(player.Deck.Cards);
            Assert.Single(player.Hand);
        }
Пример #2
0
        public void CardDrawFlipTails_Opponent()
        {
            var effect = new CardDrawEffect()
            {
                Amount = 1,
                CoinflipConditional = new CoinFlipConditional
                {
                    FlipCoin = true
                },
                Opponents = true
            };

            var player = new Player();

            player.Deck.Cards.Push(new PokemonCard());
            effect.Process(new GameField().WithFlips(CoinFlipper.TAILS), null, player, null);
            Assert.Single(player.Deck.Cards);
            Assert.Empty(player.Hand);
        }