public void TestTimeIncluded() { CronCalendar calendar = new CronCalendar("0/15 * * * * ?"); string fault = "Time was included when it was not supposed to be"; DateTime tst = DateTime.UtcNow.AddMinutes(2); tst = new DateTime(tst.Year, tst.Month, tst.Day, tst.Hour, tst.Minute, 30); Assert.IsFalse(calendar.IsTimeIncluded(tst), fault); calendar.SetCronExpressionString("0/25 * * * * ?"); fault = "Time was not included as expected"; Assert.IsTrue(calendar.IsTimeIncluded(tst), fault); }