public void Run_WithLogLevel_CallsGradleWithCustomLogLevel(GradleLogLevel logLevel, string args) { _fixture.WithLogLevel(logLevel); var result = _fixture.Run(); result.Args.ShouldBe($"{args}"); }
// ReSharper disable once UnusedMethodReturnValue.Global public GradleRunnerFixture WithLogLevel(GradleLogLevel logLevel) { _tool = _tool.WithLogLevel(logLevel); return(this); }
/// <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); }