public void TestOnHandWithNoCards() { var handWithNoCards = new Hand(new List <ICard>()); var expected = false; var actual = _pokerHandsChecker.IsValidHand(handWithNoCards); Assert.AreEqual(expected, actual); }
public void PokerHandShouldBeValid() { Hand hand = new Hand( new List <ICard>() { new Card(CardFace.Two, CardSuit.Clubs), new Card(CardFace.Two, CardSuit.Spades), new Card(CardFace.Two, CardSuit.Hearts), new Card(CardFace.Two, CardSuit.Diamonds), new Card(CardFace.Seven, CardSuit.Spades) }); Assert.IsTrue(checker.IsValidHand(hand)); }