public virtual void TestThreadLeak() { ThreadClass t = new ThreadAnonymousInnerClassHelper(this); t.Start(); while (!t.IsAlive) { Thread.@Yield(); } // once alive, leave it to run outside of the test scope. }