Exemplo n.º 1
0
        public void RecipeCreatorSetTitle_ShouldSetRecipeTitle()
        {
            var recipeCreator = new RecipeCreator(this.Context);
            var title         = "Title";

            recipeCreator.SetTitle(title);

            Assert.AreEqual(title, recipeCreator.Recipe.Title);
        }
Exemplo n.º 2
0
        public void RecipeCreatorChainingMethods_ShouldCorrectlyDoAllMethods()
        {
            var recipeCreator = new RecipeCreator(this.Context);
            var title         = "Title";
            var desc          = "Description";
            var method        = "Method";

            recipeCreator.SetTitle(title).SetDescription(desc).SetMethod(method);

            Assert.AreEqual(title, recipeCreator.Recipe.Title);
            Assert.AreEqual(desc, recipeCreator.Recipe.Description);
            Assert.AreEqual(method, recipeCreator.Recipe.Method);
        }