Tech Off Post

Single Post Permalink

View Thread: Introduction To WF4 > Exercise 6 > Task 1 – Write the Test To Verify Background Thread
  • User profile image
    JohnAskew

    Console or Debug or Trace...

    But for a test, you want to compare Actual with Expected values.

    Assert.AreEqual(Thread.CurrentThread.ManagedThreadId, activityThread.ThreadId, "wrong thread");

    yes?