System.Diagnostics.Tests.ProcessTests.TestProcessOnRemoteMachineUnix C# (CSharp) Method

TestProcessOnRemoteMachineUnix() private method

private TestProcessOnRemoteMachineUnix ( ) : void
return void
        public void TestProcessOnRemoteMachineUnix()
        {
            Process currentProcess = Process.GetCurrentProcess();

            Assert.Throws<PlatformNotSupportedException>(() => Process.GetProcessesByName(currentProcess.ProcessName, "127.0.0.1"));
            Assert.Throws<PlatformNotSupportedException>(() => Process.GetProcessById(currentProcess.Id, "127.0.0.1"));
        }
ProcessTests