Esempio n. 1
0
        public void BothPlayers_One_Pair_HighRank_Wins()
        {
            var pokerGame = new PokerGame(PokerHandTestHelper.CreateOnePairTensHand("John"),
                                          PokerHandTestHelper.CreateOnePairAcesHand("Bob"));
            var result = pokerGame.PlayHand();

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