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 replace the watch battery in Logitech K750 solar power keyboard

Buy this battery http://www.watchbattery.co.uk/shop/products/BB-ML2032.shtml Open the battery cover on the back of the keyboard, you’ll need...