Threading Model

Build 2231 (available on Experimental Updates) and later now supports setting the threading model for test runs to STA, which is the default, or MTA. This lets you exercise your code under test with different COM Apartment threading models, which is pretty useful if you know what this means — and not so useful otherwise.

The default is STA, which lets you get at Windows Forms functionality, such as the clipboard in test, and roughly corresponds to [STAThread] around your method mains for Windows Forms applications. In this mode, you can make ‘unit tests’ that show individual controls and exercise them through API calls to help test user interface.

Access this from TestMatrix | Options on the menu.

  Permalink |  Comments[0]


Recent Entries

 » Build 2687 Posted
 » New Unit Testing Book
 » Build 2293 Update Posted
 » Microsoft Team System NUnit Adapter
 » MS Team System Test Support


You can leave a response, or trackback from your own site.

Leave a Reply

 
 

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a