Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
0
 public void WaitUnsuccessful()
 {
     TestFramework.RunOnce(new WaitUnsuccessfulThreads());
 }
Ejemplo n.º 3
0
 public void Sleep()
 {
     TestFramework.RunOnce(new SleepThreads());
 }
Ejemplo n.º 4
0
 public void SignalBeforeWait()
 {
     TestFramework.RunOnce(new SignalBeforeWaitThreads());
 }
Ejemplo n.º 5
0
 public void AlternatingRequestResponse()
 {
     TestFramework.RunOnce(new AlternatingRequestResponseThreads());
 }
Ejemplo n.º 6
0
 public void RespondFirst()
 {
     TestFramework.RunOnce(new RespondFirstThreads());
 }
Ejemplo n.º 7
0
 public void SeparateThread()
 {
     TestFramework.RunOnce(new SeparateThreads());
 }