Example #1
0
        public void ShouldBeStraight()
        {
            CreateHand("4H 8S 6D 5C 7H");
            Assert.Equal(Score.Straight, PokerGame.GetScore(h));

            CreateHand("AS 5D 4H 2C 3S");
            Assert.Equal(Score.Straight, PokerGame.GetScore(h));
        }
Example #2
0
 public void ShouldBeRoyalFlush()
 {
     CreateHand("10S JS QS KS AS");
     Assert.Equal(Score.RoyalFlush, PokerGame.GetScore(h));
 }
Example #3
0
 public void ShouldBeStraightFlush()
 {
     CreateHand("9S 10S JS QS KS");
     Assert.Equal(Score.StraightFlush, PokerGame.GetScore(h));
 }
Example #4
0
 public void ShouldBeFourOfAKind()
 {
     CreateHand("AS AD 9S AC AH");
     Assert.Equal(Score.FourOfAKind, PokerGame.GetScore(h));
 }
Example #5
0
 public void ShouldBeFullHouse()
 {
     CreateHand("4D 9S 9D 4H 4C");
     Assert.Equal(Score.FullHouse, PokerGame.GetScore(h));
 }
Example #6
0
 public void ShouldBeFlush()
 {
     CreateHand("4H 8H AH 5H 2H");
     Assert.Equal(Score.Flush, PokerGame.GetScore(h));
 }
Example #7
0
 public void ShouldBeThreeOfAKind()
 {
     CreateHand("2H 2S 8C QH 2D");
     Assert.Equal(Score.ThreeOfAKind, PokerGame.GetScore(h));
 }
Example #8
0
 public void ShouldBeTwoPair()
 {
     CreateHand("2H 6C 2S 6H QD");
     Assert.Equal(Score.TwoPair, PokerGame.GetScore(h));
 }
Example #9
0
 public void ShouldBePair()
 {
     CreateHand("2H 6C 9S 2D JD");
     Assert.Equal(Score.Pair, PokerGame.GetScore(h));
 }
Example #10
0
 public void ShouldBeHighCard()
 {
     CreateHand("2H 6S 9S KS JD");
     Assert.Equal(Score.HighCard, PokerGame.GetScore(h));
 }
Example #11
0
 public void ShouldBePair()
 {
     CreateHand("2H 6C 9S 2D JD");
     Check.That(PokerGame.GetScore(h)).Equals(Score.Pair);
     //Assert.AreEqual(Score.Pair, PokerGame.GetScore(h));
 }
Example #12
0
 public void ShouldBeHighCard()
 {
     CreateHand("2H 6S 9S KS JD");
     Check.That(PokerGame.GetScore(h)).Equals(Score.HighCard);
     //Assert.AreEqual(Score.HighCard, PokerGame.GetScore(h));
 }