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