32 instantiations of TestProcessExecution
Aspire.Cli.Tests (32)
Commands\DashboardRunCommandTests.cs (2)
447
new
TestProcessExecution
(
491
new
TestProcessExecution
("fake", [], null, options, (_, _, _) => Task.FromResult((0, (string?)null)), () => 0)
Commands\GoAppHostToolingCheckTests.cs (1)
614
new
TestProcessExecution
(fileName, args, env, options, (_, _, _) => Task.FromResult((0, (string?)null)), () => 1)
Commands\StopCommandTests.cs (1)
1217
new
TestProcessExecution
(
DotNet\ProcessScopeTests.cs (3)
18
var execution = new
TestProcessExecution
(
45
var execution = new
TestProcessExecution
(
75
var execution = new
TestProcessExecution
(
ProfileCaptureServiceTests.cs (4)
229
process = new
TestProcessExecution
(fileName, args, env, options, (_, _, _) => Task.FromResult((0, (string?)null)), () => 1)
345
var process = new
TestProcessExecution
(
613
var process = new
TestProcessExecution
(
634
return new
TestProcessExecution
(
Projects\NativeAppHostServerProjectTests.cs (8)
99
return new
TestProcessExecution
(start.FileName, [], null, options,
187
return new
TestProcessExecution
(start.FileName, [], null, options,
236
return new
TestProcessExecution
(start.FileName, [], null, options,
269
return new
TestProcessExecution
(start.FileName, [], null, options,
338
return new
TestProcessExecution
(start.FileName, [], null, options,
380
CreateExecutionFromStartInfoCallback = (start, options) => new
TestProcessExecution
(start.FileName, [], null, options,
489
return new
TestProcessExecution
(start.FileName, [], null, options,
507
return new
TestProcessExecution
(start.FileName, [], null, options,
Secrets\SecretStoreResolverTests.cs (1)
517
CreateExecutionCallback = (args, env, directory, options) => new
TestProcessExecution
(
Telemetry\InternalMicrosoftDetectorTests.cs (2)
855
new
TestProcessExecution
(
963
new
TestProcessExecution
(
TestServices\TestProcessExecutionFactory.cs (1)
144
var testExecution = new
TestProcessExecution
(fileName, args, env, options, callback, () => _attemptCount);
Utils\DcpConnectionHealthCheckTests.cs (6)
138
var testExecution = new
TestProcessExecution
(
187
new
TestProcessExecution
(fileName, arguments, environment, options,
364
return new
TestProcessExecution
(fileName, arguments, environment, options,
383
new
TestProcessExecution
(fileName, arguments, environment, options,
472
return new
TestProcessExecution
(fileName, arguments, environment, options,
496
execution = new
TestProcessExecution
(
Utils\DevCertsCheckTests.cs (3)
545
new
TestProcessExecution
(fileName, args, env, options, (_, _, _) => Task.FromResult((0, (string?)"12345678")), () => 1)
650
new
TestProcessExecution
(fileName, args, env, options, async (_, _, cancellationToken) =>
709
new
TestProcessExecution
(fileName, args, env, options, (_, _, _) => throw new IOException("openssl pipe failed"), () => 1)
51 references to TestProcessExecution
Aspire.Cli.Tests (51)
Commands\GoAppHostToolingCheckTests.cs (6)
429
var
execution = Assert.IsType<
TestProcessExecution
>(Assert.Single(processExecutionFactory.CreatedExecutions));
501
var
execution = Assert.IsType<
TestProcessExecution
>(Assert.Single(processExecutionFactory.CreatedExecutions));
520
var
execution = Assert.IsType<
TestProcessExecution
>(Assert.Single(processExecutionFactory.CreatedExecutions));
Commands\StopCommandTests.cs (2)
2448
var
execution = Assert.Single(processFactory.CreatedExecutions.OfType<
TestProcessExecution
>(), execution =>
Commands\TrayCommandTests.cs (3)
232
Assert.Equal(1, Assert.IsType<
TestProcessExecution
>(Assert.Single(factory.CreatedExecutions)).DisposeCount);
486
Assert.Equal(1, Assert.IsType<
TestProcessExecution
>(Assert.Single(factory.CreatedExecutions)).DisposeCount);
535
Assert.Equal(1, Assert.IsType<
TestProcessExecution
>(Assert.Single(factory.CreatedExecutions)).DisposeCount);
DotNet\ProcessScopeTests.cs (4)
18
var
execution = new TestProcessExecution(
45
var
execution = new TestProcessExecution(
75
var
execution = new TestProcessExecution(
78
await using
var
lifetime = execution;
ProfileCaptureServiceTests.cs (11)
81
var
process = Assert.IsType<
TestProcessExecution
>(Assert.Single(processFactory.CreatedExecutions));
224
TestProcessExecution
? process = null;
273
var
process = Assert.IsType<
TestProcessExecution
>(Assert.Single(processFactory.CreatedExecutions));
306
var
process = CreateStartedProcess((_, _) => Task.FromResult(42));
345
var
process = new TestProcessExecution(
586
TestProcessExecution
? process = null,
611
private static
TestProcessExecution
CreateStartedProcess(Func<ProcessInvocationOptions, CancellationToken, Task<int>> waitForExitAsync)
613
var
process = new TestProcessExecution(
627
private static
TestProcessExecution
CreateRunningProcess(
TestServices\TestProcessExecutionFactory.cs (1)
144
var
testExecution = new TestProcessExecution(fileName, args, env, options, callback, () => _attemptCount);
Utils\DcpConnectionHealthCheckTests.cs (20)
133
TestProcessExecution
? execution = null;
138
var
testExecution = new TestProcessExecution(
198
var
execution = Assert.IsType<
TestProcessExecution
>(Assert.Single(factory.CreatedExecutions));
262
var
execution = Assert.IsType<
TestProcessExecution
>(Assert.Single(factory.CreatedExecutions));
281
var
execution = Assert.IsType<
TestProcessExecution
>(Assert.Single(factory.CreatedExecutions));
300
AssertKilledAndCleanedUp(Assert.IsType<
TestProcessExecution
>(Assert.Single(factory.CreatedExecutions)));
334
AssertKilledAndCleanedUp(Assert.IsType<
TestProcessExecution
>(Assert.Single(factory.CreatedExecutions)));
352
AssertKilledAndCleanedUp(Assert.IsType<
TestProcessExecution
>(Assert.Single(factory.CreatedExecutions)));
394
var
execution = Assert.IsType<
TestProcessExecution
>(Assert.Single(factory.CreatedExecutions));
415
var
execution = Assert.IsType<
TestProcessExecution
>(Assert.Single(factory.CreatedExecutions));
431
var
execution = Assert.IsType<
TestProcessExecution
>(Assert.Single(factory.CreatedExecutions));
451
private static void AssertKilledAndCleanedUp(
TestProcessExecution
execution)
487
TestProcessExecution
? execution = null;
513
var
startedExecution = execution;
Utils\DevCertsCheckTests.cs (4)
664
var
processExecution = Assert.IsType<
TestProcessExecution
>(Assert.Single(processExecutionFactory.CreatedExecutions));
723
var
processExecution = Assert.IsType<
TestProcessExecution
>(Assert.Single(processExecutionFactory.CreatedExecutions));