private void DoWork(object sender, DoWorkEventArgs <object, object> eventArgs) { Assert.AreNotEqual(Thread.CurrentThread.ManagedThreadId, callingThreadId); backgroundWorker.ExecuteOnCallingThread <object>(Foo2, null); }