Ejemplo n.º 1
0
        public void GetRanking_OnePairHand_ReturnsOnePairType()
        {
            var hand = new Mock <IHand>().OnePairHandRank();

            var ranker = new PokerHandRanker();

            var ranking = ranker.GetRanking(hand.Object);

            Assert.IsType <OnePairHand>(ranking);
        }
Ejemplo n.º 2
0
        public void GetRanking_FullHouseHand_ReturnsFullHouseType()
        {
            var hand = new Mock <IHand>().FullHouseHandRank();

            var ranker = new PokerHandRanker();

            var ranking = ranker.GetRanking(hand.Object);

            Assert.IsType <FullHouseHand>(ranking);
        }
Ejemplo n.º 3
0
        public void GetRanking_ThreeOfAKindHand_ReturnsThreeOfAKindType()
        {
            var hand = new Mock <IHand>().ThreeOfAKindHandRank();

            var ranker = new PokerHandRanker();

            var ranking = ranker.GetRanking(hand.Object);

            Assert.IsType <ThreeOfAKindHand>(ranking);
        }
Ejemplo n.º 4
0
        public void GetRanking_RoyalFlushHand_ReturnsRoyalFlushType()
        {
            var hand = new Mock <IHand>().RoyalFlushHandRank();

            var ranker = new PokerHandRanker();

            var ranking = ranker.GetRanking(hand.Object);

            Assert.IsType <RoyalFlushHand>(ranking);
        }
Ejemplo n.º 5
0
        public void GetRanking_HighCardHand_ReturnsHighCard()
        {
            var hand = new Mock <IHand>().HighCardHandRank();

            var ranker = new PokerHandRanker();

            var ranking = ranker.GetRanking(hand.Object);

            Assert.IsType <HighCardHand>(ranking);
        }
Ejemplo n.º 6
0
        public void GetRanking_StraightHand_ReturnsStraightType()
        {
            var hand = new Mock <IHand>().StraightHandRank();

            var ranker = new PokerHandRanker();

            var ranking = ranker.GetRanking(hand.Object);

            Assert.IsType <StraightHand>(ranking);
        }