public void CreateCards_ShouldReturn52() { // Act var result = CardsGenerator.CreateCards(); // Assert Assert.AreEqual(result.Count, 52); Assert.AreEqual(result.Count(a => a.Color == CardColor.Black.ToString()), 26); Assert.AreEqual(result.Count(a => a.Color == CardColor.Red.ToString()), 26); Assert.AreEqual(result.Count(a => a.Suit == Suit.Clubs.ToString()), 13); Assert.AreEqual(result.Count(a => a.Suit == Suit.Diamonds.ToString()), 13); Assert.AreEqual(result.Count(a => a.Suit == Suit.Hearts.ToString()), 13); Assert.AreEqual(result.Count(a => a.Suit == Suit.Spades.ToString()), 13); for (int i = 2; i <= 14; i++) { Assert.AreEqual(result.Count(a => a.Value == i), 4); } }