1 instantiation of CommandResult
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
172
return new
CommandResult
(
18 references to CommandResult
Aspire.Templates.Tests (18)
BuildAndRunTemplateTests.cs (1)
131
var
res = await buildCmd.ExecuteAsync("run");
PerTestFrameworkTemplatesTests.cs (1)
49
var
res = await cmd.ExecuteAsync($"test -c {config}");
TemplateTestsBase.cs (3)
68
var
res = await newTestCmd.ExecuteAsync($"{testTemplateName} {tmfArg} -o \"{testProjectName}\" {extraArgs}");
317
public static async Task<
CommandResult
?> AssertTestProjectRunAsync(string testProjectDirectory, string testType, ITestOutputHelper testOutput, string config = "Debug", int testRunTimeoutSecs = 3 * 60)
340
var
testRes = (await testCmd.ExecuteAsync($"test -c {config} --no-build"))
tests\Shared\TemplatesTesting\AspireProject.cs (4)
121
var
res = await cmd.ExecuteAsync(cmdString).ConfigureAwait(false);
320
public async Task<
CommandResult
> BuildAsync(string[]? extraBuildArgs = default, CancellationToken token = default, string? workingDirectory = null)
326
var
res = await restoreCmd.ExecuteAsync($"restore \"-bl:{Path.Combine(LogPath!, $"{Id}-restore.binlog")}\" /p:TreatWarningsAsErrors=true");
467
var
res = (await cmd.ExecuteAsync($"container list --all --filter name={component} --format {{{{.Names}}}}"))
tests\Shared\TemplatesTesting\CommandResult.cs (3)
13
public static readonly
CommandResult
Empty;
26
public
CommandResult
EnsureSuccessful(string messagePrefix = "", bool suppressOutput = false)
29
public
CommandResult
EnsureExitCode(int expectedExitCode = 0, string messagePrefix = "", bool suppressOutput = false)
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (2)
100
public static async Task<
CommandResult
> InstallTemplatesAsync(string packagePath, string customHiveDirectory, string dotnet)
112
var
res = await cmd.ExecuteAsync(installCmd);
tests\Shared\TemplatesTesting\ToolCommand.cs (2)
80
public virtual async Task<
CommandResult
> ExecuteAsync(params string[] args)
106
private async Task<
CommandResult
> ExecuteAsyncInternal(string executable, string args, CancellationToken token)
tests\Shared\TemplatesTesting\ToolCommandException.cs (2)
8
public
CommandResult
? Result { get; }
9
public ToolCommandException(string message,
CommandResult
? result) : base(message)