public void TestAddEvent1() { EventHolder eventHolder = new EventHolder(); eventHolder.AddEvent(new DateTime(2013, 4, 21, 11, 30, 0), "3D Graphics", "Ultimate Hall"); Assert.AreEqual("Event added" + Environment.NewLine, eventHolder.Log); }
private static void AddEvent(string command) { DateTime date; string title; string location; GetParameters(command, "AddEvent", out date, out title, out location); events.AddEvent(date, title, location); }
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 TestAddEvent() { EventHolder eventHolder = new EventHolder(); eventHolder.AddEvent(new DateTime(2013, 06, 01, 21, 20, 0), "JS", "Telerik"); Assert.AreEqual("Event added" + Environment.NewLine, Messages.Output); }
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)); }