Beispiel #1
0
        public void EnsureGetPersonByColorWorksProperly()
        {
            FavouriteColorEntityFrameworkRepository favCSVFileRepo = new FavouriteColorEntityFrameworkRepository();
            var person = favCSVFileRepo.GetPeopleByColor("blau");

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