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

How to by pass the Jaguary X-Type enter security pin screen after changing battery

How to bypass security code on Jaguar X-Type touchscreen Satellite Navigational units. Just hold the skip track, AMEM and PTY buttons ...