26 instantiations of TestProcessExecution
Aspire.Cli.Tests (26)
Commands\DashboardRunCommandTests.cs (2)
447new TestProcessExecution( 491new TestProcessExecution("fake", [], null, options, (_, _, _) => Task.FromResult((0, (string?)null)), () => 0)
Commands\StopCommandTests.cs (1)
1214new 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)
90return new TestProcessExecution(start.FileName, [], null, options, 178return new TestProcessExecution(start.FileName, [], null, options, 227return new TestProcessExecution(start.FileName, [], null, options, 260return new TestProcessExecution(start.FileName, [], null, options, 329return new TestProcessExecution(start.FileName, [], null, options, 371CreateExecutionFromStartInfoCallback = (start, options) => new TestProcessExecution(start.FileName, [], null, options, 480return new TestProcessExecution(start.FileName, [], null, options, 498return 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)
145var testExecution = new TestProcessExecution(fileName, args, env, options, callback, () => _attemptCount);
Utils\DcpConnectionHealthCheckTests.cs (1)
136var testExecution = new TestProcessExecution(
Utils\DevCertsCheckTests.cs (3)
525new TestProcessExecution(fileName, args, env, options, (_, _, _) => Task.FromResult((0, (string?)"12345678")), () => 1) 630new TestProcessExecution(fileName, args, env, options, async (_, _, cancellationToken) => 689new TestProcessExecution(fileName, args, env, options, (_, _, _) => throw new IOException("openssl pipe failed"), () => 1)
27 references to TestProcessExecution
Aspire.Cli.Tests (27)
Commands\StopCommandTests.cs (2)
1559var execution = Assert.Single(processFactory.CreatedExecutions.OfType<TestProcessExecution>(), execution =>
Commands\TrayCommandTests.cs (3)
168Assert.Equal(1, Assert.IsType<TestProcessExecution>(Assert.Single(factory.CreatedExecutions)).DisposeCount); 420Assert.Equal(1, Assert.IsType<TestProcessExecution>(Assert.Single(factory.CreatedExecutions)).DisposeCount); 469Assert.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)
145var testExecution = new TestProcessExecution(fileName, args, env, options, callback, () => _attemptCount);
Utils\DcpConnectionHealthCheckTests.cs (2)
131TestProcessExecution? execution = null; 136var testExecution = new TestProcessExecution(
Utils\DevCertsCheckTests.cs (4)
644var processExecution = Assert.IsType<TestProcessExecution>(Assert.Single(processExecutionFactory.CreatedExecutions)); 703var processExecution = Assert.IsType<TestProcessExecution>(Assert.Single(processExecutionFactory.CreatedExecutions));