When_CurrentTimeProvider_is_accessed_after_ClearLogic_is_called_Then_time_provider_is_set_to_default_logic() { ApplicationTime.ResetToDefault(); ApplicationTime.ClearLogic(); Assert.IsInstanceOf <DefaultTimeProvider>(ApplicationTime.CurrentTimeProvider); }
public void When_GetUtcNow_is_called_for_the_first_time_Then_no_exception_is_thrown() { ApplicationTime.ClearLogic(); Assert.DoesNotThrow(() => ApplicationTime.GetUtcNow()); }