System.Diagnostics.Tests.ProcessThreadTests.TestThreadStateProperty C# (CSharp) Method

TestThreadStateProperty() private method

private TestThreadStateProperty ( ) : void
return void
        public void TestThreadStateProperty()
        {
            ProcessThread thread = _process.Threads[0];
            if (ThreadState.Wait != thread.ThreadState)
            {
                Assert.Throws<InvalidOperationException>(() => thread.WaitReason);
            }
        }
    }