nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #02712
[Bug 959576] Re: NUnit-console executes in STA mode
I'm experiencing the same behavior as well and am currently working
around the issue by using the /apartment=MTA flag.
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/959576
Title:
NUnit-console executes in STA mode
Status in NUnit V2 Test Framework:
New
Bug description:
In NUNIT 2.6, the nunit-console executes tests in STA mode.
I created a simple test: a single class with only one test, containing:
Debug.WriteLine(System.Threading.Thread.CurrentThread.GetApartmentState());
If you run this in nunit-console, it outputs STA.
If you run it with the GUI, it outputs MTA.
According to the documentation, the default for the console should be
MTA.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/959576/+subscriptions
References