Esempio n. 1
0
        public void GetCost_LargePepperoniPizzaWithCheese_ReturnsCost()
        {
            var pizza  = new PepperoniPizza(new CheesePizza(new LargePizza()));
            var result = pizza.GetCost();

            Assert.Equal(10.25, result);
        }
Esempio n. 2
0
        public void GetCost_PepperoniPizzaWithCheese_ReturnsDescription()
        {
            var pizza  = new PepperoniPizza(new CheesePizza(new SmallPizza()));
            var result = pizza.GetCost();

            Assert.Equal(8.25, result);
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            var pizza = new PepperoniPizza(new CheesePizza(new LargePizza()));

            Console.WriteLine("Description: " + pizza.GetDescription());
            Console.WriteLine("Price: $" + pizza.GetCost());
            Console.ReadLine();
        }