public void TestDeleteEvents() { EventHolder eventHolder = new EventHolder(); eventHolder.AddEvent(new DateTime(2013, 04, 17, 18, 0, 0), "Football Game", "Stadium"); eventHolder.DeleteEvents("Football Game"); Assert.AreEqual(true, Messages.Output.EndsWith("1 events deleted" + Environment.NewLine)); }
public void TestDeleteEvents1() { EventHolder eventHolder = new EventHolder(); eventHolder.AddEvent(new DateTime(2013, 6, 21, 11, 30, 0), "WPF", "Ultimate Hall"); eventHolder.DeleteEvents("WPF"); Assert.AreEqual(true, Messages.Output.EndsWith("1 event(s) deleted" + Environment.NewLine)); }
public void TestDeleteEvents1() { EventHolder eventHolder = new EventHolder(); eventHolder.AddEvent(new DateTime(2013, 6, 21, 11, 30, 0), "WPF", "Ultimate Hall"); eventHolder.DeleteEvents("WPF"); Assert.AreEqual(true, eventHolder.Log.EndsWith("1 event(s) deleted" + Environment.NewLine)); }
private static void DeleteEvents(string command) { string title = command.Substring( "DeleteEvents".Length + 1); events.DeleteEvents(title); }