protected override void ShowCards()
 {
     _hand = new Poker(_cards);
     lbPokerHand.Items.Clear();
     foreach (Card cardName in _cards)
     {
         lbPokerHand.Items.Add(cardName.ToString());
     }
     int sumOfHand = _hand.GetSumOfCards();
     lblHand.Text = "You have a " + _hand.GetHandType(sumOfHand);
 }
        public void GetHandType()
        {
            List<Card> hand = new List<Card>()
                                  {
                                      new Card(Rank.Ten, Suit.Spades),
                                      new Card(Rank.Ten, Suit.Diamonds),
                                      new Card(Rank.Ten, Suit.Clubs),
                                      new Card(Rank.Ten, Suit.Hearts),
                                      new Card(Rank.Six, Suit.Clubs)
                                  };
            Poker pokerHand = new Poker(hand);
            int getHandSum = pokerHand.GetSumOfCards();

            Assert.AreEqual(TypeOfHand.FourOfAKind, pokerHand.GetHandType(getHandSum));
        }