Re: Running Tests as [STAThread]

"Charlie Poole" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.devel
Message-ID <005601c87a93$399fe320$6401a8c0@ferrari>
You specify the apartment model in the test config file. See the config for
NUnit's own tests for an example.
 
Charlie


  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Kishore
v
Sent: Thursday, February 28, 2008 7:13 PM
To: [email protected]
Subject: [nunit-developer] Running Tests as [STAThread]


Hello,

I have tests written in a different in-house framework for which I have also
created an addin to run these from NUnit.
The tests are picked up from the test assembly and are running fine from
NUnit.
The problem is I've some GUI tests which always need to run with a
[STAThread] attribute. These tests always fail if the threading apartment is
not set to STA.
Previously I've had the luxury to set the entry point (the main thread of
the application which calls these tests) with the STA or MTA attributes as
required.
Is there some way I can configure NUnit to provide me the same results as my
previous test harness?

Regards,
Kishore

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
nunit-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-developer
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.