Example #1
0
        public void DetermineBestHandTest3()
        {
            Resolver = new HandResolver(Hand3.Take(5).ToList(), Hand3.Skip(5).ToList());
            Resolver.DetermineBestHand();

            Assert.AreEqual(Hand.FullHouse, Resolver.BestHand);
            Assert.AreEqual(5, Resolver.BestHandCards.Count);
            Assert.AreEqual(0, Resolver.Kickers.Count);
            Assert.AreEqual(Type.Ace, Resolver.BestHandCards[0].CardType);
        }
Example #2
0
        public void DetermineBestHandTest2()
        {
            Resolver = new HandResolver(Hand2.Take(5).ToList(), Hand2.Skip(5).ToList());
            Resolver.DetermineBestHand();

            Assert.AreEqual(Hand.FourOfAKind, Resolver.BestHand);
            Assert.AreEqual(4, Resolver.BestHandCards.Count);
            Assert.AreEqual(1, Resolver.Kickers.Count);
            Assert.AreEqual(Type.Ace, Resolver.BestHandCards[0].CardType);
        }