Example #1
0
 public void ShouldConfigureScheduledTaskWithOverrides()
 {
     NamedMockSchedTask s = new NamedMockSchedTask("SchedTask1");
     Assert.AreEqual("SchedTask1", s.Name);
     Assert.AreEqual(TimeSpan.Parse("23:45"), s.ScheduledTime);
     Assert.IsFalse(s.Enabled);
 }
Example #2
0
 public void ShouldConfigureScheduledTaskWithExtraAttributes()
 {
     NamedMockSchedTask s = new NamedMockSchedTask("SchedTask1");
     Assert.AreEqual("SchedTask1", s.Name);
     Assert.AreEqual("1", s.Settings.TaskProperties["dummy"]);
 }