Exemple #1
0
        public void CreateAForm_twoIngredients()
        {
            Recipe          r2   = new Recipe(2);
            FormIngredients form = new FormIngredients(r2);

            // Verify
            Assert.AreEqual("No Recipe Name", form.Text);
        }
Exemple #2
0
        public void CreateAForm_namedRecipe()
        {
            // Setup
            Recipe r = new Recipe(0);

            r.Name = "aName";
            FormIngredients form = new FormIngredients(r);

            // Verify
            Assert.AreEqual("aName Add ingredients", form.Text);
        }
Exemple #3
0
        public void SetUp()
        {
            Recipe recipe = new Recipe(0);

            form = new FormIngredients(recipe);
        }