public void StraightFlush_beats_FourOfAKind() { var pokerGame = new PokerGame(PokerHandTestHelper.CreateStraightFlushHand("Player1"), PokerHandTestHelper.CreateFourOfAKindHand("Player2")); var result = pokerGame.PlayHand(); Assert.AreEqual("Player1", result.WinningPlayer); Assert.AreEqual(HandRankResult.Straight_Flush, result.RankResult); }
public void StraightFlush() { var hand = PokerHandTestHelper.CreateStraightFlushHand("Sven Hoek"); Assert.IsTrue(hand.IsStraight()); Assert.IsTrue(hand.IsStraightFlush()); Assert.IsFalse(hand.IsRoyalFlush()); Assert.AreEqual(CardRank.Nine, hand.RankHighCard); }