public void TestGetPetsListOrderedAlphabeticallyByOwnerGender_WithFemaleOwner() { CategorisingData categoriseData = new CategorisingData(); List <Pet> petsFemale = categoriseData.GetPetsListOrderedAlphabeticallyByOwnerGender(Gender.Female, people); Assert.AreEqual(4, petsFemale.Count); Assert.AreEqual("Garfield", petsFemale[0].Name); Assert.AreEqual("Nemo", petsFemale[1].Name); Assert.AreEqual("Simba", petsFemale[2].Name); Assert.AreEqual("Tabby", petsFemale[3].Name); }
public void TestGetPetsListOrderedAlphabeticallyByOwnerGender_WithMaleOwner() { CategorisingData categoriseData = new CategorisingData(); List <Pet> petsMale = categoriseData.GetPetsListOrderedAlphabeticallyByOwnerGender(Gender.Male, people); Assert.AreEqual(6, petsMale.Count); Assert.AreEqual("Fido", petsMale[0].Name); Assert.AreEqual("Garfield", petsMale[1].Name); Assert.AreEqual("Jim", petsMale[2].Name); Assert.AreEqual("Max", petsMale[3].Name); Assert.AreEqual("Sam", petsMale[4].Name); Assert.AreEqual("Tom", petsMale[5].Name); }