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

TestWindowApisUnix() private method

private TestWindowApisUnix ( ) : void
return void
        private void TestWindowApisUnix()
        {
            // This tests the hardcoded implementations of these APIs on Unix.
            using (Process p = Process.GetCurrentProcess())
            {
                Assert.True(p.Responding);
                Assert.Equal(string.Empty, p.MainWindowTitle);
                Assert.False(p.CloseMainWindow());
                Assert.Throws<InvalidOperationException>(()=>p.WaitForInputIdle());
            }
        }
ProcessTests