Exemplo n.º 1
0
        public void should_track_the_job_failure()
        {
            var exception = TheJobTracker.GetArgumentsForCallsMadeOn(x => x.Failure(null))
                            [0][0].ShouldBeOfType <AggregateException>();

            exception.Flatten().InnerException.ShouldBeOfType <DivideByZeroException>();
        }
Exemplo n.º 2
0
 public void should_mark_the_job_as_executing_correctly_and_reschedules()
 {
     TheJobTracker.AssertWasCalled(x => x.Success(theNextTimeAccordingToTheSchedulerRule));
 }