public void should_track_the_job_failure() { var exception = TheJobTracker.GetArgumentsForCallsMadeOn(x => x.Failure(null)) [0][0].ShouldBeOfType <AggregateException>(); exception.Flatten().InnerException.ShouldBeOfType <DivideByZeroException>(); }
public void should_mark_the_job_as_executing_correctly_and_reschedules() { TheJobTracker.AssertWasCalled(x => x.Success(theNextTimeAccordingToTheSchedulerRule)); }