public void HandExtender_AceToJackIsTenPoints() { Hand hand = new Hand(new List<ICard>() { new Card(SuiteColor.Hearts, CardValue.Jack), new Card(SuiteColor.Hearts, CardValue.Queen), new Card(SuiteColor.Hearts, CardValue.King), new Card(SuiteColor.Hearts, CardValue.Ace), }); Assert.AreEqual(10, hand.Points()); }
public void HandToString() { Deck deck = new Deck(); deck.Shuffle(123456); IHand[] hands = deck.Deal(13, 1); Hand h = new Hand(hands[0]); Assert.AreEqual(10, h.Points()); Assert.AreEqual(2, h.ExtraPoints()); }
public void HandExtender_QueenIsTwoPoints() { Hand hand = new Hand(new List<ICard>() { new Card(SuiteColor.Hearts, CardValue.Queen) }); Assert.AreEqual(2, hand.Points()); }
public void HandExtender_KingIsThreePoints() { Hand hand = new Hand(new List<ICard>() { new Card(SuiteColor.Hearts, CardValue.King) }); Assert.AreEqual(3, hand.Points()); }
public void HandExtender_JackIsOnePoints() { Hand hand = new Hand(new List<ICard>() { new Card(SuiteColor.Hearts, CardValue.Jack) }); Assert.AreEqual(1, hand.Points()); }
public void HandExtender_AceIsFourPoints() { Hand hand = new Hand(new List<ICard>() { new Card(SuiteColor.Hearts, CardValue.Ace) }); Assert.AreEqual(1, hand.Count); Assert.AreEqual(4, hand.Points()); }