コード例 #1
0
        public void CardDeckInstanceCreationTest()
        {
            CardDeck deck = new CardDeck();
            Assert.AreEqual(deck.Cards.Count, 52);

            CollectionAssert.AllItemsAreUnique(deck.Cards);
        }
コード例 #2
0
        /// <summary>
        /// Adds cards to list.
        /// </summary>
        private void AddCardDeck()
        {
            CardDeck deck = new CardDeck();
            lstCardDecks.Add(deck);

            lstCards.AddRange(deck.Cards);
        }