public void ShouldTranslateLogLevelToLogEventLevel(string argValue, LogEventLevel expectedLogLevel) { var validatedInput = new VerbosityInput { SuppliedInput = argValue }.Validate(); validatedInput.ShouldBe(expectedLogLevel); }
public void ShouldBeInformationWhenNull() { var input = new VerbosityInput { SuppliedInput = null }; var validatedInput = input.Validate(); validatedInput.ShouldBe(LogEventLevel.Information); }
public void ShouldHaveHelpText() { var target = new VerbosityInput(); target.HelpText.ShouldBe(@"The verbosity (loglevel) for output to the console. | default: 'info' | allowed: error, warning, info, debug, trace"); }