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

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