Exemple #1
0
        public void OrderTeaNoMilkandWithSugar()
        {
            double expected = 1.5;

            var drink  = AcuCafeOrders.OrderDrink("HotTea", false, true);
            var actual = drink.Cost();

            Assert.AreEqual(expected, actual, "Price for Tea No Milk and with sugar is wrong.");
        }
Exemple #2
0
        public void OrderExpressoNoMilkandNoSugar()
        {
            double expected = 1.8;

            var drink  = AcuCafeOrders.OrderDrink("Expresso", false, false);
            var actual = drink.Cost();

            Assert.AreEqual(expected, actual, "Price for Expresso No Milk and No sugar is wrong.");
        }
Exemple #3
0
        public void OrderTeaMilkandSugar()
        {
            double expected = 2.0;

            var drink  = AcuCafeOrders.OrderDrink("HotTea", true, true);
            var actual = drink.Cost();

            Assert.AreEqual(expected, actual, "Price for Tea with Milk and sugar is wrong.");
        }
Exemple #4
0
        public void OrderExpressoMilkandSugar()
        {
            double expected = 2.8;

            var drink  = AcuCafeOrders.OrderDrink("Expresso", true, true);
            var actual = drink.Cost();

            Assert.AreEqual(expected, actual, "Price for Expresso with Milk and sugar is wrong.");
        }
Exemple #5
0
        public void OrderExpressoMilkandSugarandChocToppingMessage()
        {
            var expected = "We are preparing the following drink for you: Expresso with milk with sugar with chocolate topping";

            var drink  = AcuCafeOrders.OrderDrink("Expresso", true, true, true);
            var actual = drink.Message;

            Assert.AreEqual(expected, actual, "Message for Expresso with Milk and sugar and Choc Topping is wrong.");
        }
Exemple #6
0
        public void OrderIceCoffeeMilkandSugarMessage()
        {
            string expected = "Error creating drink.";

            var drink  = AcuCafeOrders.OrderDrink("IceCoffee", true, true);
            var actual = drink.Message;

            Assert.AreEqual(expected, actual, "Ice Coffee test failed.");
        }
Exemple #7
0
        public void OrderIceCoffeeMilkandSugar()
        {
            // No Iced Coffee so should gt 0 cost back.
            double expected = 0;

            var drink  = AcuCafeOrders.OrderDrink("IceCoffee", true, true);
            var actual = drink.Cost();

            Assert.AreEqual(expected, actual, "Ice Coffee test failed.");
        }
Exemple #8
0
        public void OrderIceTeaNoMilkandNoSugar()
        {
            // Iced Tea can not have milk
            double expected = 1.5;

            var drink  = AcuCafeOrders.OrderDrink("IceTea", false, false);
            var actual = drink.Cost();

            Assert.AreEqual(expected, actual, "Price for Ice Tea No Milk and No sugar is wrong.");
        }