示例#1
0
        static void TestHowManyTrumpCards()
        {
            Deck     d  = new Deck();
            FoolHand fh = new FoolHand(d, 51);

            Console.WriteLine("Test how many trump cards are in the hand");
            d.DetermineTrump();
            Console.WriteLine("Trump Card.  Expecting 'King of Spades'. " + d.DisplayTrumpCard());
            Console.WriteLine("Moved the 1st card in the deck after dealing to the bottom of the deck.  The last Card should be a trump card - 'King of Spades'.\n" + d.ToString());
            Console.WriteLine("Number of trump cards.  Expecting '12'. " + fh.HowManyTrumpCards(fh, d.DisplayTrumpCard()));
        }