How to run unit tests in STAThread mode?

Posted by Peter on Stack Overflow See other posts from Stack Overflow or by Peter
Published on 2010-03-12T16:19:18Z Indexed on 2010/03/12 16:27 UTC
Read the original article Hit count: 283

Filed under:
|
|

I would like to test an app that uses the Clipboard (WindowsForms) and I need the Clipboard in my Unittests also. In order to use it, it should run in STA mode, but since the NUnit Testfixture does not have a main method, I don't know where/how to annotate it...

Thanks!

© Stack Overflow or respective owner

Related posts about stathread

Related posts about c#