Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }