public void shouldNotRemovePriceIfPriceIsNotInDictionary()
        {
            RestaurantFilters theFilters = new RestaurantFilters();

            theFilters.RemovePrice("$");

            Assert.AreEqual("Query Filters:\n"
                            + "Non Query Filters:\n", theFilters.ToString());
        }
        public void shouldRemovePriceIfMatchingPriceIsOnlyItemInDictionary()
        {
            RestaurantFilters theFilters = new RestaurantFilters();

            theFilters.AddPrice("1");
            theFilters.RemovePrice("1");

            Assert.AreEqual("Query Filters:\n"
                            + "Non Query Filters:\n", theFilters.ToString());
        }
        public void shouldRemoveMiddlePrice()
        {
            RestaurantFilters theFilters = new RestaurantFilters();

            theFilters.AddPrice("1");
            theFilters.AddPrice("3");
            theFilters.AddPrice("4");
            theFilters.RemovePrice("3");

            Assert.AreEqual("Query Filters:\n"
                            + "price 1,4\n"
                            + "Non Query Filters:\n", theFilters.ToString());
        }
        public void shouldNotRemovePriceIfNonMatchingPricesAreItemsInDictionary()
        {
            RestaurantFilters theFilters = new RestaurantFilters();

            theFilters.AddPrice("1");
            theFilters.AddPrice("3");
            theFilters.AddPrice("4");
            theFilters.RemovePrice("2");

            Assert.AreEqual("Query Filters:\n"
                            + "price 1,3,4\n"
                            + "Non Query Filters:\n", theFilters.ToString());
        }
        public void shouldRemovePriceIfLastElementInDictionary()
        {
            RestaurantFilters theFilters = new RestaurantFilters();

            theFilters.AddLocation("32515");
            theFilters.AddOpenNow("true");
            theFilters.AddPrice("1");

            theFilters.RemovePrice("1");

            Assert.AreEqual("Query Filters:\n"
                            + "location 32515\n"
                            + "open_now true\n"
                            + "Non Query Filters:\n", theFilters.ToString());
        }
        public void shouldNotAddNullPrice()
        {
            RestaurantFilters theFilters = new RestaurantFilters();

            Assert.ThrowsException <ArgumentException>(() => theFilters.RemovePrice(null));
        }