public void GetCost_LargePepperoniPizzaWithCheese_ReturnsCost() { var pizza = new PepperoniPizza(new CheesePizza(new LargePizza())); var result = pizza.GetCost(); Assert.Equal(10.25, result); }
public void GetCost_PepperoniPizzaWithCheese_ReturnsDescription() { var pizza = new PepperoniPizza(new CheesePizza(new SmallPizza())); var result = pizza.GetCost(); Assert.Equal(8.25, result); }
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(); }