Exemple #1
0
        public void TestCard_shuffle()
        {
            bool IsShuffle = false;
            var  mydeck    = new CardDeck();
            var  mydeckTwo = new CardDeck();

            mydeck.Shuffle();

            for (int i = 0; i < mydeck.Count(); i++)
            {
                if (mydeck.ElementAt(i) != mydeckTwo.ElementAt(i))
                {
                    IsShuffle = true;
                    break;
                }
            }
            Assert.IsTrue(IsShuffle);
        }
Exemple #2
0
        public void TestCardDeck()
        {
            var mydeck = new CardDeck();

            Assert.AreEqual(52, mydeck.Count());
        }