public void TestDrawingAHand()
 {
     var deck = new Deck();
     var cardsToDraw = 5;
     List<Card> drawnCards = deck.DrawCards(cardsToDraw);
     Assert.AreEqual(cardsToDraw, drawnCards.Count, "Hand Error",
         "The deck did not draw the expected number of cards.");
     foreach (var card in drawnCards)
         Assert.IsInstanceOfType(card, typeof(Card), "Card Error",
             "The list of drawn cards contained something that wasn't a card.");
 }
 public void DrawNewHand(Deck deck)
 {
     _hand = new Hand(deck.DrawCards(5));
     HandType = HandEvaluator.GetHandType(_hand.Cards);
 }
 public void DrawNewHand(Deck deck)
 {
     Hand = new Hand(deck.DrawCards(5));
 }
 public static void TestDrawingAHand()
 {
     var deck = new Deck();
     deck.Shuffle();
     //Creating and printing a hand was known to be working at this time.
     var hand = new Hand(deck.DrawCards(5));
     Console.WriteLine("The drawn cards were: " + hand.ToString());
     Console.ReadKey();
 }