2 writes to _testHostProcess
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
Hosting\DotnetTestHostManager.cs (2)
949
_testHostProcess
= _processHelper.LaunchProcess(
962
_testHostProcess
= Process.GetProcessById(processId);
9 references to _testHostProcess
Microsoft.TestPlatform.TestHostRuntimeProvider (9)
Hosting\DotnetTestHostManager.cs (9)
866
_processHelper.TerminateProcess(
_testHostProcess
);
873
_testHostProcess
?.Dispose();
881
TPDebug.Assert(_targetFramework is not null &&
_testHostProcess
is not null, "DotnetTestHostManager: TargetFramework is null");
884
ITestHostLauncher3 launcher3 => launcher3.AttachDebuggerToProcess(new AttachDebuggerInfo { ProcessId =
_testHostProcess
.Id, TargetFramework = _targetFramework.ToString() }, CancellationToken.None),
885
ITestHostLauncher2 launcher2 => launcher2.AttachDebuggerToProcess(
_testHostProcess
.Id),
918
[MemberNotNullWhen(true, nameof(
_testHostProcess
))]
966
if (
_testHostProcess
is null)
971
DefaultTestHostManager.AdjustProcessPriorityBasedOnSettings(
_testHostProcess
, testHostStartInfo.EnvironmentVariables);
972
OnHostLaunched(new HostProviderEventArgs("Test Runtime launched", 0,
_testHostProcess
.Id));