public void SimpleFindFirstCardInStraight() { testHand.Cards.Add(new Card() { Rank = CardRank.Five, Suit = CardSuit.Clubs }); testHand.Cards.Add(new Card() { Rank = CardRank.Six, Suit = CardSuit.Diamonds }); testHand.Cards.Add(new Card() { Rank = CardRank.Seven, Suit = CardSuit.Hearts }); testHand.Cards.Add(new Card() { Rank = CardRank.Four, Suit = CardSuit.Spades }); testHand.Cards.Add(new Card() { Rank = CardRank.Eight, Suit = CardSuit.Clubs }); Card firstCardInStraight = testHand.FindFirstCardInStraight(); Assert.IsNotNull(firstCardInStraight, "First found in straight not found."); Assert.AreEqual( CardRank.Four, firstCardInStraight.Rank, "Incorrect card returned as first card in straight."); }