To set the unit tests to run in MTA mode, add the MTA mode attribute to the Execution element as shown in the following example:
<Execution>
<ExecutionThread apartmentState="MTA" />
</Execution>
http://blogs.msdn.com/b/irenak/archive/2008/02/22/sysk-365-how-to-get-your-unit-tests-test-project-in-visual-studio-2008-a-k-a-mstest-run-multithreaded.aspx
http://msdn.microsoft.com/en-us/library/ms404663.aspx
No comments:
Post a Comment