1 instantiation of CommandResult
Aspire.Workload.Tests (1)
tests\Shared\WorkloadTesting\ToolCommand.cs (1)
172
return new
CommandResult
(
18 references to CommandResult
Aspire.Workload.Tests (18)
BuildAndRunTemplateTests.cs (1)
145
var
res = await buildCmd.ExecuteAsync("run");
PerTestFrameworkTemplatesTests.cs (1)
55
var
res = await cmd.ExecuteAsync($"test -c {config}");
tests\Shared\WorkloadTesting\AspireProject.cs (4)
103
var
res = await cmd.ExecuteAsync(cmdString).ConfigureAwait(false);
302
public async Task<
CommandResult
> BuildAsync(string[]? extraBuildArgs = default, CancellationToken token = default, string? workingDirectory = null)
308
var
res = await restoreCmd.ExecuteAsync($"restore \"-bl:{Path.Combine(LogPath!, $"{Id}-restore.binlog")}\" /p:TreatWarningsAsErrors=true");
427
var
res = (await cmd.ExecuteAsync($"container list --all --filter name={component} --format {{{{.Names}}}}"))
tests\Shared\WorkloadTesting\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\WorkloadTesting\TemplateCustomHive.cs (2)
100
public static async Task<
CommandResult
> InstallTemplatesAsync(string packagePath, string customHiveDirectory, string dotnet)
110
var
res = await cmd.ExecuteAsync(installCmd);
tests\Shared\WorkloadTesting\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\WorkloadTesting\ToolCommandException.cs (2)
8
public
CommandResult
? Result { get; }
9
public ToolCommandException(string message,
CommandResult
? result) : base(message)
WorkloadTestsBase.cs (3)
67
var
res = await newTestCmd.ExecuteAsync($"{testTemplateName} {tmfArg} -o \"{testProjectName}\"");
319
public static async Task<
CommandResult
?> AssertTestProjectRunAsync(string testProjectDirectory, string testType, ITestOutputHelper testOutput, string config = "Debug", int testRunTimeoutSecs = 3 * 60)
342
var
testRes = (await testCmd.ExecuteAsync($"test -c {config} --no-build"))