public void TestHandType(int handId, HandType expectedHandType, int expectedScore) { var score = new TexasHoldemHand.TexasHoldemScore(testCaseDictionary[handId]); Assert.AreEqual(expectedHandType, score.HandType); Assert.AreEqual(expectedScore, score.GetScore()); }
public void TestScoring(int hand1, int hand2, int expectedComparison) { var score1 = new TexasHoldemHand.TexasHoldemScore(testCaseDictionary[hand1]); var score2 = new TexasHoldemHand.TexasHoldemScore(testCaseDictionary[hand2]); var comparison = score1.CompareTo(score2); Assert.AreEqual(expectedComparison, comparison); }