public void Blocking() { // SETUP String message = null; // EXEC try { TestFramework.RunOnce(new BlockingThreads()); Assert.Fail("should have thrown."); } catch (TargetInvocationException ex) { message = ex.InnerException.Message; } // VERIFY Assert.AreEqual( "All test threads are blocked. Did you start new threads that " + "the test doesn't know about?", message, "error message"); }
public void WaitUnsuccessful() { TestFramework.RunOnce(new WaitUnsuccessfulThreads()); }
public void Sleep() { TestFramework.RunOnce(new SleepThreads()); }
public void SignalBeforeWait() { TestFramework.RunOnce(new SignalBeforeWaitThreads()); }
public void AlternatingRequestResponse() { TestFramework.RunOnce(new AlternatingRequestResponseThreads()); }
public void RespondFirst() { TestFramework.RunOnce(new RespondFirstThreads()); }
public void SeparateThread() { TestFramework.RunOnce(new SeparateThreads()); }