public void shouldNotAddDuplicateFoodCatagorys() { RestaurantFilters theFilters = new RestaurantFilters(); theFilters.AddFoodCategory("Burgers"); Assert.ThrowsException <ArgumentException>(() => theFilters.AddFoodCategory("Fried Chicken")); }
public void ShouldRemoveFoodCatagoryIfOnlyFoodCatagoryIsInDictionary() { RestaurantFilters theFilters = new RestaurantFilters(); theFilters.AddFoodCategory("30254"); theFilters.RemoveFoodCategory(); Assert.AreEqual("Query Filters:\n" + "Non Query Filters:\n", theFilters.ToString()); }
public void shouldAddOneFoodCatagory() { RestaurantFilters theFilters = new RestaurantFilters(); theFilters.AddFoodCategory("Burgers"); Assert.AreEqual("Query Filters:\n" + "categories Burgers\n" + "Non Query Filters:\n" , theFilters.ToString()); }
public void ShouldRemoveFoodCatagoryIfFoodCatagoryIsLastItemInDictionary() { RestaurantFilters theFilters = new RestaurantFilters(); theFilters.AddOpenNow("true"); theFilters.AddRadius("5"); theFilters.AddFoodCategory("Burgers"); theFilters.RemoveFoodCategory(); Assert.AreEqual("Query Filters:\n" + "open_now true\n" + "radius 5\n" + "Non Query Filters:\n", theFilters.ToString()); }
public void shouldNotAddNullFoodCatagory() { RestaurantFilters theFilters = new RestaurantFilters(); Assert.ThrowsException <ArgumentException>(() => theFilters.AddFoodCategory(null)); }