public void Should_be_able_to_take_one_card()
 {
     var hand = new Hand();
     hand.TakeCard(new Card(Suit.Heart, CardName.Ace, 14));
     var cards = hand.ShowCard();
     cards.Should().HaveCount(1);
 }
        public Hand TakeOneHand()
        {
            var hand = new Hand();
            for (var i = 0; i < 5; i++)
                hand.TakeCard(_cards.Pop());

            return hand;
        }
 public void Should_be_able_to_show_correct_cards()
 {
     var card = new Card(Suit.Heart, CardName.Ace, 14);
     var hand = new Hand();
     hand.TakeCard(card);
     var cards = hand.ShowCard();
     cards[0].ShouldBeEquivalentTo(card);
 }
 private static bool CheckIfIsTargetHand(Hand currentHand)
 {
     return currentHand.ShowCard().GroupBy(x => x.Value).Select(grouping => grouping.Count() == 4).FirstOrDefault();
 }