public void RecipeStepGetInitialStepTest() { RecipeStepFactory factory = new RecipeStepFactory(); InitialStep step = factory.GetInitialStep("Test Drink", "Old Fashioned") as InitialStep; Assert.IsNotNull(step); }
public void RecipeGetIgniteRecipeStepCallTest() { RecipeStepFactory factory = new RecipeStepFactory(); RecipeStepCall recipeStepCall = factory.GetRecipeStepCall("Ignite"); Assert.IsNotNull(recipeStepCall._step); Assert.IsTrue(recipeStepCall._step is IgniteStep); Assert.IsFalse(recipeStepCall is RecipeStepCall <Ingredient>); recipeStepCall = factory.GetRecipeStepCall <Ingredient>("Ignite", new Ingredient("TestIngredient", 1, IngredientUnit.Dash, "Test Ingredient")); Assert.IsNull(recipeStepCall._step); }