Esempio n. 1
0
        public void InitializeDeck()
        {
            var jokerlessDeck = new PlayingCardDeck();
            var deck = new PlayingCardDeck(3);

            Assert.AreEqual(0, jokerlessDeck.Count(x => x.Identity.IsJoker));
            Assert.AreEqual(3, deck.Count(x => x.Identity.IsJoker));
        }
Esempio n. 2
0
        public void DeckForJokerShouldHaveThirtySixCards()
        {
            // Arrange
            var deck = new PlayingCardDeck(CardSuits.Default(), CardIdentities.JokerCardIdentities(), 2, true);

            // Assert
            Assert.AreEqual(36, deck.Count());
        }