Exemplo n.º 1
0
        public void LogLevel_Setting_Adds_Switch_To_Command(BowerLogLevel logLevel, string name)
        {
            fixture.CacheSettings = s => s.WithLogLevel(logLevel);
            var result = fixture.Run();

            result.Args.ShouldBe($"cache --loglevel={name}");
        }
Exemplo n.º 2
0
 /// <summary>
 /// Sets the log level e.g. --loglevel=warn
 /// </summary>
 /// <param name="settings"></param>
 /// <param name="logLevel"></param>
 /// <returns></returns>
 public static T WithLogLevel <T>(this T settings, BowerLogLevel logLevel) where T : BowerRunnerSettings
 {
     settings.LogLevel = logLevel;
     return(settings);
 }