Ejemplo n.º 1
0
        public void IsOnePairFailOnEmptyHand()
        {
            // Get an instance of a PokerGame
            IPokerRules game = new FunPoker();
            PokerHand hand = null;

            // Set the hand

            // Check if it's true
            Assert.IsFalse(game.IsOnePair(hand));
        }
Ejemplo n.º 2
0
        public void IsOnePairFail()
        {
            // Get an instance of a PokerGame
            IPokerRules game = new FunPoker();
            PokerHand hand = new PokerHand();

            // Set the hand
            hand.Cards.Add(new Card(SuitEnum.Heart, ValueEnum.One));
            hand.Cards.Add(new Card(SuitEnum.Spade, ValueEnum.One));
            hand.Cards.Add(new Card(SuitEnum.Club, ValueEnum.One));
            hand.Cards.Add(new Card(SuitEnum.Spade, ValueEnum.King));
            hand.Cards.Add(new Card(SuitEnum.Diamond, ValueEnum.Three));

            // Check if it's true
            Assert.IsFalse(game.IsOnePair(hand));
        }