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 find the last interactive logons in Windows using PowerShell

Use the following powershell script to find the last users to login to a box since a given date, in this case the 21st April 2022 at 12pm un...