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

    I did a search and found nothing on this topic, so hoping it's cool to start this thread here.

    So, the problem is that the newly added test doesn't compile due to the following two lines of code [in the test];

    TestContext.WriteLine("Test thread is {0}", Thread.CurrentThread.ManagedThreadId);
    TestContext.WriteLine("Activity thread is {0}", activityThread);

    I'm going to simply switch TextContext to Console and hope that fixes the issue.  Will it?