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