public void EnsureGetPersonByColorWorksProperly() { FavouriteColorEntityFrameworkRepository favCSVFileRepo = new FavouriteColorEntityFrameworkRepository(); var person = favCSVFileRepo.GetPeopleByColor("blau"); Assert.IsTrue(person.Count() >= 2); }
public void EnsureGetPersonByColorDealsWithUknownStringsProperly() { try { FavouriteColorEntityFrameworkRepository favCSVFileRepo = new FavouriteColorEntityFrameworkRepository(); var person = favCSVFileRepo.GetPeopleByColor("blauklasjdlkasjdlsakdjsalkdj"); Assert.IsTrue(false); } catch (ColorNotExistException) { Assert.IsTrue(true); } }