System.Diagnostics.Tests.ProcessThreadTests.TestThreadStateProperty C# (CSharp) 메소드

TestThreadStateProperty() 개인적인 메소드

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