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

Buy this battery Open the battery cover on the back of the keyboard, you’ll need...