public void JobDoesNotCompleteWithForcedDelay() { var job = new DelayingJob(TimeSpan.FromSeconds(2)); var jobCompleted = JobHost.Run(job, TimeSpan.FromSeconds(1)); Assert.False(jobCompleted); }
public void JobCompletesWithoutForcedDelay() { var job = new DelayingJob(TimeSpan.FromTicks(1)); var jobCompleted = JobHost.Run(job); Assert.True(jobCompleted); }