public void Comparer_WhenComparingLowFourOfAKind_ToHighFourOfAKind_Ensures_Low_Loses() { var pokerHand1 = PokerHandTestHelper.CreateLowFourOfAKind(); var pokerHand2 = PokerHandTestHelper.CreateHighFourOfAKind(); var result = _comparer.CompareHands(pokerHand1, pokerHand2); Assert.AreEqual(-1, result, "Expected Hand1 to beat Hand2"); }
public void Comparer_WhenComparing_FourOfAKind_To_FullHouse_FourOfAKind_Wins() { var pokerHand1 = PokerHandTestHelper.CreateLowFourOfAKind(); var pokerHand2 = PokerHandTestHelper.CreateHighFullHouse(); var result = _comparer.CompareHands(pokerHand1, pokerHand2); Assert.AreEqual(1, result, "Expected Hand1 to beat Hand2"); }
public void Comparer_WhenComparingHighFourOfAKind_ToLowFourOfAKind_Ensures_High_Wins() { var pokerHand1 = PokerHandTestHelper.CreateHighFourOfAKind(); var pokerHand2 = PokerHandTestHelper.CreateLowFourOfAKind(); var result = _comparer.CompareHands(pokerHand1, pokerHand2); Assert.AreEqual(1, result, "Expected Hand2 to lose to Hand1"); }
public void Factory_WhenPassed_A_LowFourOfAKind_Combination_Returns_A_FourOfAKind() { Assert.IsTrue(SpecifiedPokerHand(PokerHandTestHelper.CreateLowFourOfAKind()) is FourOfAKind); }