Example #1
0
 public void AddList_NoError()
 {
     try
     {
         GroceryListAccessor.AddList("title7", "target", DateTime.Now, 1);
     }
     catch (InvalidOperationException e)
     {
         StringAssert.Contains(e.Message, "");
     }
     return;
 }
Example #2
0
 public void AddList_TakenTitle()
 {
     try
     {
         GroceryListAccessor.AddList("title1", "target", DateTime.Now, 1);
     }
     catch (InvalidOperationException e)
     {
         StringAssert.Contains(e.Message, "");
         return;
     }
     Assert.Fail("The expected exception was not thrown.");
 }