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