public void EventManagerDeleteValidParameterShouldDeleteEvent() { var manager = new EventManager(); manager.EventsList.Add(new Event("Test title1", "Location1", new DateTime(2014, 12, 31))); manager.DeleteEventsByTitle("Test title1"); Assert.AreEqual(0, manager.EventsList.Count); }
public void EventManagerDeleteEventsByTitleNullParameterShouldThrow() { var manager = new EventManager(); manager.DeleteEventsByTitle(null); }