Example #1
0
        public void BothPlayers_Four_Of_A_Kind_HighRank_Wins()
        {
            var pokerGame = new PokerGame(PokerHandTestHelper.CreateFourOfAKindFivesHand("John"),
                                          PokerHandTestHelper.FourOfAKindJacksHand("Bob"));
            var result = pokerGame.PlayHand();

            Assert.AreEqual(HandRankResult.Four_Of_A_Kind, result.RankResult);
            Assert.AreEqual("Bob", result.WinningPlayer);
        }