public void CountPetsTest() { var result = Linq.CountPets(pets); CollectionAssert.AreEquivalent(new List <string> { "cat:8", "chinchilla:6", "dog:13", "fish:7", "hamster:4", "leopard:1", "rabbit:6" }, result); }