public void TestAddEvent() { DataStorage thisWeek = new DataStorage(); Event morning = new Event(DateTime.Now, "Coffe", "bIS"); thisWeek.AddEvent(morning); Event afternoon = new Event(DateTime.Now, "Work", "I'm working on my project"); thisWeek.AddEvent(afternoon); Event evening = new Event(DateTime.Now, "Work", "I'm still working on my project"); thisWeek.AddEvent(evening); }
public void CountEvents() { DataStorage thisWeek = new DataStorage(); Event morning = new Event(DateTime.Now, "Coffe", "bIS"); thisWeek.AddEvent(morning); Event afternoon = new Event(DateTime.Now, "Work", "I'm working on my project"); thisWeek.AddEvent(afternoon); Event evening = new Event(DateTime.Now, "Work", "I'm still working on my project"); thisWeek.AddEvent(evening); Assert.Equal(3, thisWeek.Count); }