public void PokerHandShouldBeFourOfAKind() { Hand hand = new Hand( new List <ICard>() { new Card(CardFace.Ace, CardSuit.Diamonds), new Card(CardFace.Ace, CardSuit.Hearts), new Card(CardFace.Ace, CardSuit.Clubs), new Card(CardFace.Seven, CardSuit.Spades), new Card(CardFace.Ace, CardSuit.Spades) }); if (!checker.IsValidHand(hand)) { Assert.Fail("Hand must be valid!"); } Assert.IsTrue(checker.IsFourOfAKind(hand)); }
public void TestOnHandWithNoCards() { var handWithNoCards = new Hand(new List <ICard>()); var expected = false; var actual = _pokerHandsChecker.IsFourOfAKind(handWithNoCards); Assert.AreEqual(expected, actual); }