public async Task Application_can_be_created_and_executed_with_list_command(string[] commandLineArguments, string result, bool interactive) { // Arrange var builder = new CliApplicationBuilder().AddCommand <BenchmarkDefaultCommand>(); if (interactive) { builder.UseDirectMode(true) .UseInteractiveMode(); } // Act var(exitCode, stdOut, stdErr) = await builder.BuildAndRunTestAsync(_output, commandLineArguments, interactive); // Assert exitCode.Should().Be(ExitCodes.Success); stdOut.GetString().Should().ContainEquivalentOf(result); stdErr.GetString().Should().BeNullOrWhiteSpace(); }