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)); }
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); }