public void TestCarrotCakeRecipe() { var blankCake = new CarrotCake(); var cooker = new CarrotCakeCooker(blankCake); var finalResult = cooker.Cook(); Assert.Equal("Carrots!", finalResult.SecretIngredient); }
public void Run() { var blankCake = new CarrotCake(); var cooker = new CarrotCakeCooker(blankCake); var finalResult = cooker.Cook(); // now we can enjoy a delicious cake!! }
public void TestCarrotCakeHadIcingAdded() { CarrotCake carrotCake = new CarrotCake(); carrotCake.Accept(_cakeVisitor); // throws Assert.Equal("Vanilla Icing", carrotCake.Icing); Assert.False(carrotCake.DoubleIcing); }
public AbstractFactoryTest() { var factoryApp = new MainAbstractFactoryApp(); _myCake = factoryApp.Main(new [] { "fancy" }); }