Esempio n. 1
0
        public void VerifyCreateNewDeckOfCards()
        {
            var numberOfDecks = 2;
            var newDeck       = CardApiHelper.GetNewDeck(numberOfDecks, withJokers: false);

            newDeck.success.Should().BeTrue();
            newDeck.deck_id.Should().NotBeNullOrEmpty();
            newDeck.shuffled.Should().BeFalse();
            newDeck.remaining.Should().Be(numberOfDecks * 52);

            CardApiHelper.VerifyDeckIsComplete(newDeck.deck_id, numberOfDecks, hasJokers: false);
        }
Esempio n. 2
0
        public void VerifyCreateNewDeckOfCardsWithJokers()
        {
            var numberOfDecks = 1;
            var newDeck       = CardApiHelper.GetNewDeck(numberOfDecks, withJokers: true);

            newDeck.success.Should().BeTrue();
            newDeck.deck_id.Should().NotBeNullOrEmpty();
            newDeck.shuffled.Should().BeFalse();

            // Add Jokers functionality does not seem to be working on the API
            //newDeck.remaining.Should().Be(numberOfDecks * 54);
            newDeck.remaining.Should().Be(numberOfDecks * 52);

            CardApiHelper.VerifyDeckIsComplete(newDeck.deck_id, numberOfDecks, hasJokers: true);
        }