Tuesday, 10 May 2011

Multithreaded testing with MSTest.exe in Visual Studio



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

Android mediaserver process killing battery life

If this happens to you, then do the following Force stop on Settings, Applications, All, Media Storage. Clear Cache and Clear Data, fo...