Validate() public method

Validates whether the properties of the IJobDetail are valid for submission into a IScheduler.
public Validate ( ) : void
return void
 public void TestValidateTimeOfDayOrder()
 {
     var trigger = new DailyTimeIntervalTriggerImpl
     {
         StartTimeOfDay = new TimeOfDay(12, 0, 0),
         EndTimeOfDay = new TimeOfDay(8, 0, 0)
     };
     try
     {
         trigger.Validate();
         Assert.Fail("Trigger should be invalidate when time of day is not in order.");
     }
     catch (SchedulerException)
     {
         // expected.
     }
 }
 public void ValidateShouldSucceedWithValidIntervalUnitHourConfiguration()
 {
     var trigger = new DailyTimeIntervalTriggerImpl
     {
         Name = "name",
         Group = "group",
         JobName = "jobname",
         JobGroup = "jobgroup",
         RepeatIntervalUnit = IntervalUnit.Hour
     };
     trigger.Validate();
 }