public void GetScore_TwoPair_AreEqual() { var hand = UInt64Cards.Parse("[9d,Kc,9h,Ks,Jh]"); var act = hand.GetScore(); //Assert.AreEqual("[Ks,Kc,9h,9d,Jh]", act.ToString()); Assert.AreEqual(PokerHandType.TwoPair, act.ScoreType); }
public void GetScore_StraightWithAce_AreEqual() { var hand = UInt64Cards.Parse("[Ac,2d,3c,5h,4d]"); var act = hand.GetScore(); //Assert.AreEqual("[5h,4d,3c,2d,Ac]", act.ToString()); Assert.AreEqual(PokerHandType.Straight, act.ScoreType); }
public void GetScore_ThreeOfAKind_AreEqual() { var hand = UInt64Cards.Parse("[3c,Qs,2s,3h,3d]"); var act = hand.GetScore(); //Assert.AreEqual("[3h,3c,3d,Qs,2s]", act.ToString()); Assert.AreEqual(PokerHandType.ThreeOfAKind, act.ScoreType); }
public void GetScore_Flush_AreEqual() { var hand = UInt64Cards.Parse("[3s,As,Ts,6s,Qs]"); var act = hand.GetScore(); //Assert.AreEqual("[As,Qs,Ts,6s,3s]", act.ToString()); Assert.AreEqual(PokerHandType.Flush, act.ScoreType); }
public void GetScore_Straight_AreEqual() { var hand = UInt64Cards.Parse("[5c,7s,6h,9s,8d]"); var act = hand.GetScore(); //Assert.AreEqual("[9s,8d,7s,6h,5c]", act.ToString()); Assert.AreEqual(PokerHandType.Straight, act.ScoreType); }
public void GetScore_FullHouse_AreEqual() { var hand = UInt64Cards.Parse("[5s,8d,8h,5d,5h]"); var act = hand.GetScore(); //Assert.AreEqual("[5s,5h,5d,8h,8d]", act.ToString()); Assert.AreEqual(PokerHandType.FullHouse, act.ScoreType); }
public void GetScore_FourOfAKind_AreEqual() { var hand = UInt64Cards.Parse("[Ac,6c,6d,6h,6s]"); var act = hand.GetScore(); //Assert.AreEqual("[6s,6h,6c,6d,Ac]", act.ToString()); Assert.AreEqual(PokerHandType.FourOfAKind, act.ScoreType); }
public void GetScore_StraightFlush_AreEqual() { var hand = UInt64Cards.Parse("[7c,Jc,8c,Tc,9c]"); var act = hand.GetScore(); //Assert.AreEqual("[Jc,Tc,9c,8c,7c]", act.ToString()); Assert.AreEqual(PokerHandType.StraightFlush, act.ScoreType); }
public void GetScore_HighCard_AreEqual() { var hand = UInt64Cards.Parse("[Th,Kh,2c,Qc,Ah]"); var act = hand.GetScore(); //Assert.AreEqual("[Ah,Kh,Qc,Th,2c]", act.ToString()); Assert.AreEqual(PokerHandType.HighCard, act.ScoreType); }
public void GetScore_OnePair_AreEqual() { var hand = UInt64Cards.Parse("[7h,2d,6c,2h,Qh]"); var act = hand.GetScore(); //Assert.AreEqual("[2h,2d,Qh,7h,6c]", act.ToString()); Assert.AreEqual(PokerHandType.OnePair, act.ScoreType); }