nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #02337
[Bug 896615] Re: Tests can't be run in existing AppDomain
Code doesn't exist in nunit-3.0... bug must be intended for nunitv2
** Project changed: nunit-3.0 => nunitv2
** Changed in: nunitv2
Status: New => Triaged
** Changed in: nunitv2
Importance: Undecided => Medium
** Changed in: nunitv2
Assignee: (unassigned) => Charlie Poole (charlie.poole)
** Changed in: nunitv2
Milestone: None => 2.6.0
--
You received this bug notification because you are a member of NUnit
Core Developers, which is the registrant for NUnit Framework.
https://bugs.launchpad.net/bugs/896615
Title:
Tests can't be run in existing AppDomain
Status in NUnit V2 Test Framework:
Triaged
Bug description:
If I set Options.TestLoader.DomainUsage as DomainUsage.None and set Options.TestLoader.ProcessModel = ProcessModel.Single, test-doman-* AppDomain created otherwise, because these parameters set to Default.
It seems that problem is inside method TestLoader::MakeTestPackage in this code:
if (processModel != ProcessModel.Multiple && domainUsage == DomainUsage.Multiple
&& !package.Settings.Contains("DomainUsage"))
package.Settings["DomainUsage"] = domainUsage;
Does the code needs to be changed to the following code?
if (processModel != ProcessModel.Multiple && domainUsage != DomainUsage.Multiple
&& !package.Settings.Contains("DomainUsage"))
package.Settings["DomainUsage"] = domainUsage;
To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/896615/+subscriptions
References