示例#1
0
        public void JobDoesNotCompleteWithForcedDelay()
        {
            var job = new DelayingJob(TimeSpan.FromSeconds(2));

            var jobCompleted = JobHost.Run(job, TimeSpan.FromSeconds(1));

            Assert.False(jobCompleted);
        }
示例#2
0
        public void JobCompletesWithoutForcedDelay()
        {
            var job = new DelayingJob(TimeSpan.FromTicks(1));

            var jobCompleted = JobHost.Run(job);

            Assert.True(jobCompleted);
        }