示例#1
0
        /// <summary>
        /// DeckOfCards constructor
        /// </summary>
        public DeckOfCards()
        {
            _deck = new Card[NUMBER_OF_CARDS];
            _currentCard = 0;
            _randomNumbers = new Random();

            for (int count = 0; count < _deck.Length; count++)
                _deck[count] = new Card(count % 13, count / 13);
        }
示例#2
0
 public void TestCS()
 {
     var card1 = new Card(11, 2);
     Assert.AreEqual("Queen - Clubs", card1.ToString());
 }