コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }