12 instantiations of TestProcessExecution
Aspire.Cli.Tests (12)
Commands\DashboardRunCommandTests.cs (2)
362
new
TestProcessExecution
(
406
new
TestProcessExecution
("fake", [], null, options, (_, _, _) => Task.FromResult((0, (string?)null)), () => 0)
Commands\StopCommandTests.cs (1)
940
new
TestProcessExecution
(
ProfileCaptureServiceTests.cs (4)
165
process = new
TestProcessExecution
(fileName, args, env, options, (_, _, _) => Task.FromResult((0, (string?)null)), () => 1)
281
var process = new
TestProcessExecution
(
550
var process = new
TestProcessExecution
(
571
return new
TestProcessExecution
(
TestServices\TestProcessExecutionFactory.cs (1)
110
var testExecution = new
TestProcessExecution
(fileName, args, env, options, callback, () => _attemptCount);
Utils\DcpConnectionHealthCheckTests.cs (1)
69
var testExecution = new
TestProcessExecution
(
Utils\DevCertsCheckTests.cs (3)
525
new
TestProcessExecution
(fileName, args, env, options, (_, _, _) => Task.FromResult((0, (string?)"12345678")), () => 1)
630
new
TestProcessExecution
(fileName, args, env, options, async (_, _, cancellationToken) =>
689
new
TestProcessExecution
(fileName, args, env, options, (_, _, _) => throw new IOException("openssl pipe failed"), () => 1)
20 references to TestProcessExecution
Aspire.Cli.Tests (20)
Commands\StopCommandTests.cs (2)
1257
var
execution = Assert.Single(processFactory.CreatedExecutions.OfType<
TestProcessExecution
>(), execution =>
ProfileCaptureServiceTests.cs (11)
82
var
process = Assert.IsType<
TestProcessExecution
>(Assert.Single(processFactory.CreatedExecutions));
160
TestProcessExecution
? process = null;
209
var
process = Assert.IsType<
TestProcessExecution
>(Assert.Single(processFactory.CreatedExecutions));
242
var
process = CreateStartedProcess((_, _) => Task.FromResult(42));
281
var
process = new TestProcessExecution(
523
TestProcessExecution
? process = null,
548
private static
TestProcessExecution
CreateStartedProcess(Func<ProcessInvocationOptions, CancellationToken, Task<int>> waitForExitAsync)
550
var
process = new TestProcessExecution(
564
private static
TestProcessExecution
CreateRunningProcess(
TestServices\TestProcessExecutionFactory.cs (1)
110
var
testExecution = new TestProcessExecution(fileName, args, env, options, callback, () => _attemptCount);
Utils\DcpConnectionHealthCheckTests.cs (2)
64
TestProcessExecution
? execution = null;
69
var
testExecution = new TestProcessExecution(
Utils\DevCertsCheckTests.cs (4)
644
var
processExecution = Assert.IsType<
TestProcessExecution
>(Assert.Single(processExecutionFactory.CreatedExecutions));
703
var
processExecution = Assert.IsType<
TestProcessExecution
>(Assert.Single(processExecutionFactory.CreatedExecutions));