예제 #1
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));
 }
예제 #2
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));
 }
예제 #3
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));
        }
예제 #4
0
    private static void DeleteEvents(string command)
    {
        string title =
            command.Substring(
                "DeleteEvents".Length + 1);

        events.DeleteEvents(title);
    }