public void AddRecipe() { SqlRecipeManager srm = new SqlRecipeManager(); int before = srm.Count(); srm.AddRecipe("testUser", "RECIPE", "This is the steps to make RECIPE!"); int after = srm.Count(); Assert.AreEqual((before+1), after); }
public void AddInvalidRecipe() { SqlRecipeManager srm = new SqlRecipeManager(); int before = srm.Count(); srm.AddRecipe("", "" , "This is the steps to make RECIPIE!"); int after = srm.Count(); Assert.AreEqual(before, after); }