예제 #1
0
        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());
        }
예제 #2
0
        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);
        }