I have created some tests in my WPF application. Right now I am working on testing single components, for example images and text blocks. If I run a single test in my unit tests, they all pass without a hitch. The problem occurs when I try run all the tests, I get the following errors in the tests that create and modify WPF components:
"The calling thread cannot access this object because a different thread owns it."
I do not create any threads in my tests explicitly, so this is VS08 trying to get clever and bombing my code. I have tried using an application dispatcher but that didn't work...
Any suggestions?