示例#1
0
        public void Run_WithLogLevel_CallsGradleWithCustomLogLevel(GradleLogLevel logLevel, string args)
        {
            _fixture.WithLogLevel(logLevel);

            var result = _fixture.Run();

            result.Args.ShouldBe($"{args}");
        }
示例#2
0
 // ReSharper disable once UnusedMethodReturnValue.Global
 public GradleRunnerFixture WithLogLevel(GradleLogLevel logLevel)
 {
     _tool = _tool.WithLogLevel(logLevel);
     return(this);
 }
示例#3
0
 /// <summary>
 /// Sets the gradle logging level.
 /// </summary>
 /// <param name="logLevel">The logging level.</param>
 /// <returns>The <c>GradleRunner</c> for fluent re-use.</returns>
 public GradleRunner WithLogLevel(GradleLogLevel logLevel)
 {
     _logLevel = logLevel;
     return(this);
 }