Esempio n. 1
0
        public void BlackteaSugar_CookiesJam()
        {
            Order order = new Order
            {
                Drink    = "Чай черный",
                Food     = "Печенье",
                Addition = new Dictionary <string, int>
                {
                    ["Сахар"] = 2,
                    ["Джем"]  = 1
                }
            };
            string expected = "Напиток: Чай черный + Сахар 2шт.\nЕда: Печенье + Джем\nСтоимость: 64 руб.";

            FoodDispenserModel _model = new FoodDispenserModel();
            string             actual = _model.CheckAndGive(order);

            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public void WaterMilk_CookieHam_errorReturned()
        {
            Order order = new Order
            {
                Drink    = "Вода",
                Food     = "Печенье",
                Addition = new Dictionary <string, int>
                {
                    ["Молоко"]  = 1,
                    ["Ветчина"] = 1
                }
            };
            string expected = "Вода с молоком - не круто! :(";

            FoodDispenserModel _model = new FoodDispenserModel();
            string             actual = _model.CheckAndGive(order);

            Assert.AreEqual(expected, actual);
        }