3 writes to _testHostProcess
Microsoft.TestPlatform.TestHostRuntimeProvider (3)
Hosting\DefaultTestHostManager.cs (3)
384
_testHostProcess
= null;
545
_testHostProcess
= _processHelper.LaunchProcess(
558
_testHostProcess
= Process.GetProcessById(processId);
9 references to _testHostProcess
Microsoft.TestPlatform.TestHostRuntimeProvider (9)
Hosting\DefaultTestHostManager.cs (9)
403
_processHelper.TerminateProcess(
_testHostProcess
);
410
_testHostProcess
?.Dispose();
418
TPDebug.Assert(_targetFramework is not null &&
_testHostProcess
is not null, "Initialize and LaunchTestHostAsync must be called before AttachDebuggerToTestHost");
422
ITestHostLauncher3 launcher3 => launcher3.AttachDebuggerToProcess(new AttachDebuggerInfo { ProcessId =
_testHostProcess
.Id, TargetFramework = _targetFramework.ToString() }, CancellationToken.None),
423
ITestHostLauncher2 launcher2 => launcher2.AttachDebuggerToProcess(
_testHostProcess
.Id),
525
[MemberNotNullWhen(true, nameof(
_testHostProcess
), nameof(_testHostProcessStdError))]
562
if (
_testHostProcess
is null)
567
AdjustProcessPriorityBasedOnSettings(
_testHostProcess
, testHostStartInfo.EnvironmentVariables);
568
OnHostLaunched(new HostProviderEventArgs("Test Runtime launched", 0,
_testHostProcess
.Id));