コード例 #1
0
ファイル: SnapTests.cs プロジェクト: Chillout93/Snap
        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());
        }