Example #1
0
        public void ShouldSayIfStraight()
        {
            Hand     theHand  = new Hand("7H, 8D, 9H, 10S, JH");
            Straight straight = new Straight();
            var      result   = straight.IsTypeOf(theHand);

            Assert.That(result, Is.EqualTo(true));
        }
Example #2
0
        public bool IsTypeOf(Hand theHand)
        {
            var straight   = new Straight();
            var flush      = new Flush();
            var isStraight = straight.IsTypeOf(theHand);
            var isFlush    = flush.IsTypeOf(theHand);

            return(isStraight && isFlush);
        }