public void AddList_NoError() { try { GroceryListAccessor.AddList("title7", "target", DateTime.Now, 1); } catch (InvalidOperationException e) { StringAssert.Contains(e.Message, ""); } return; }
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."); }