Example #1
0
        public void Shuffle()
        {
            for (int i = 0; i < 30; i++)
            {
                player.Deck.AddCard(new ChillwindYeti(i));
            }

            var originalDeck = new BaseCard[30];

            player.Deck.Cards.CopyTo(originalDeck);

            player.Deck.Shuffle();

            var shuffledDeck = new BaseCard[30];

            player.Deck.Cards.CopyTo(shuffledDeck);

            Assert.IsFalse(originalDeck.SequenceEqual(shuffledDeck));
        }
Example #2
0
        public void Shuffle()
        {
            for (int i = 0; i < 30; i++)
            {
                player.Deck.AddCard(new ChillwindYeti(i));
            }

            var originalDeck = new BaseCard[30];
            player.Deck.Cards.CopyTo(originalDeck);

            player.Deck.Shuffle();

            var shuffledDeck = new BaseCard[30];
            player.Deck.Cards.CopyTo(shuffledDeck);

            Assert.IsFalse(originalDeck.SequenceEqual(shuffledDeck));
        }