public void should_disable_and_reenable_timer_when_polling_enabled() { ITimer timer = MockRepository.GenerateMock <ITimer>(); timer.GetMockRepository().Ordered(); ICommandQueue proc = MockRepository.GenerateStub <ICommandQueue>(); Statics.ShouldPollXenStore = true; ServiceWork elapsed = new ServiceWork(timer, proc); elapsed.Do(); timer.AssertWasCalled(x => x.Enabled = false); timer.AssertWasCalled(x => x.Enabled = true); }
public void should_call_the_before_each_spec_before_starting_the_specification() { _timer.AssertWasCalled(x => x.Start(null), opt => opt.IgnoreArguments()); }