Exemple #1
0
        public void LargePizzaWithCheeseAndHam()
        {
            Pizza pizza = new LargePizza();

            pizza = new Cheese(pizza);
            pizza = new Ham(pizza);
            Assert.AreEqual("Large Pizza, Cheese Topping, Ham Topping", pizza.Description());
            Assert.AreEqual(11.75, pizza.Cost());
        }