2 writes to _testHostProcess
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
Hosting\DotnetTestHostManager.cs (2)
955
_testHostProcess
= _processHelper.LaunchProcess(
968
_testHostProcess
= Process.GetProcessById(processId);
9 references to _testHostProcess
Microsoft.TestPlatform.TestHostRuntimeProvider (9)
Hosting\DotnetTestHostManager.cs (9)
872
_processHelper.TerminateProcess(
_testHostProcess
);
879
_testHostProcess
?.Dispose();
887
TPDebug.Assert(_targetFramework is not null &&
_testHostProcess
is not null, "DotnetTestHostManager: TargetFramework is null");
890
ITestHostLauncher3 launcher3 => launcher3.AttachDebuggerToProcess(new AttachDebuggerInfo { ProcessId =
_testHostProcess
.Id, TargetFramework = _targetFramework.ToString() }, CancellationToken.None),
891
ITestHostLauncher2 launcher2 => launcher2.AttachDebuggerToProcess(
_testHostProcess
.Id),
924
[MemberNotNullWhen(true, nameof(
_testHostProcess
))]
972
if (
_testHostProcess
is null)
977
DefaultTestHostManager.AdjustProcessPriorityBasedOnSettings(
_testHostProcess
, testHostStartInfo.EnvironmentVariables);
978
OnHostLaunched(new HostProviderEventArgs("Test Runtime launched", 0,
_testHostProcess
.Id));