Monday, 25 July 2011

How to get your unit tests (test project in Visual Studio 2008, a.k.a. MSTest) run multithreaded


Add this to the configuration for the test

<TestRunConfiguration ...>


<ExecutionThread apartmentState="MTA" />


To check the threading model used, add the following line to your test(s):


public void YourTest()



// TODO: Add test logic here


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 ...