Esempio n. 1
0
        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);
        }
Esempio n. 2
0
    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);
    }
Esempio n. 3
0
 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));
 }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
 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));
 }
Esempio n. 6
0
        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);
        }
Esempio n. 7
0
        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));
        }