Example #1
0
        public void ThreeOfAKindTest2()
        {
            Resolver = new HandResolver(Hand2.Take(5).ToList(), Hand2.Skip(5).ToList());
            Resolver.CheckForThreeOfAKind();

            Assert.AreEqual(Hand.ThreeOfAKind, Resolver.BestHand);
            Assert.AreEqual(3, Resolver.BestHandCards.Count);
            Assert.AreEqual(2, Resolver.Kickers.Count);
            Assert.AreEqual(Type.Ace, Resolver.BestHandCards[0].CardType);
        }
Example #2
0
        public void ThreeOfAKindTest1()
        {
            // No three of a kind expected
            Resolver = new HandResolver(Hand1.Take(5).ToList(), Hand1.Skip(5).ToList());
            Resolver.CheckForThreeOfAKind();

            Assert.AreEqual(Hand.None, Resolver.BestHand);
            Assert.AreEqual(0, Resolver.BestHandCards.Count);
            Assert.AreEqual(0, Resolver.Kickers.Count);
        }