public void BrokenNativeCallback() { var oven = new Oven(); // Cook is a Java opcode that executes an external C function that will crash the app. oven.Cook(); }
public void MakePizza() { dough.AddCheese(cheese); dough.AddSauce(sauce); dough.AddTopping(topping); oven.SetTemperature(450); oven.SetTimer(15); oven.Cook(dough); }
public void MakePizza() { Dough.AddSauce(Sauce); Dough.AddCheese(Cheese); Dough.AddTopping(Topping); Oven.SetTemperature(425); Oven.SetTimer(10); Oven.Cook(Dough); System.Console.WriteLine("Made Pizza with :" + Topping.DescribeTopping()); }
public void MakePizza() { Console.WriteLine("Making pizza."); _dough.AddSauce(_sauce); _dough.AddCheese(_cheese); _dough.AddTopping(_topping); Console.WriteLine(""); _oven.SetTemperature(425); _oven.SetTimer(20); _oven.Cook(_dough); }
public void Cook() { var potato = this.GetPotato(); var carrot = this.GetCarrot(); var peeledPotato = this.Peel(potato); var peeledCarrot = this.Peel(carrot); var cuttedPotato = this.Cut(potato); var cuttedCarrot = this.Cut(carrot); Bowl bowl = this.GetBowl(); var bowlwithVegetables = bowl.Add(cuttedPotato); bowlwithVegetables.Add(cuttedCarrot); var oven = new Oven(); var coockedMeal = oven.Cook(bowlwithVegetables); }