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?