Exemplo n.º 1
0
        public void Comparer_WhenComparing_TwoPairWithHighFifth_ToTwoPairWithLowFifth_EnsuresHigh_Wins()
        {
            var pokerHand1 = PokerHandTestHelper.CreateSameTwoPairsDifferentFifthCard(CardValue.Ace);
            var pokerHand2 = PokerHandTestHelper.CreateSameTwoPairsDifferentFifthCard(CardValue.Eight);

            var result = _comparer.CompareHands(pokerHand1, pokerHand2);

            Assert.AreEqual(1, result, "Expected Hand1 to beat Hand2");
        }