public void Should_validate_settings() { var invalidSettings = new ConsoleLogGlobalSettings { EventsQueueCapacity = -1 }; new Action(() => muxerProvider.UpdateSettings(invalidSettings)) .Should().Throw <ArgumentOutOfRangeException>(); }
public void ValidateGlobalSettings_should_throw_exception_if_EventsTemporaryBufferCapacityy_is_not_positive() { var settings = new ConsoleLogGlobalSettings { EventsTemporaryBufferCapacity = 0 }; new Action(() => SettingsValidator.ValidateGlobalSettings(settings)) .Should().Throw <ArgumentOutOfRangeException>(); settings.EventsTemporaryBufferCapacity = -1; new Action(() => SettingsValidator.ValidateGlobalSettings(settings)) .Should().Throw <ArgumentOutOfRangeException>(); }