Example #1
0
        public void Given_GeneratingStandardDeck_ThenItHas13OfEachSuit()
        {
            var deck = _snap.GenerateStandardDeck();

            Assert.AreEqual(13, deck.Where(x => x.Suit == Suit.Club).Count());
            Assert.AreEqual(13, deck.Where(x => x.Suit == Suit.Diamond).Count());
            Assert.AreEqual(13, deck.Where(x => x.Suit == Suit.Heart).Count());
            Assert.AreEqual(13, deck.Where(x => x.Suit == Suit.Spade).Count());
        }