I was not suggesting to give tests access to modify the environment.

I was referring to the 2nd option you mentioned -- having some sort of
an attribute or similar approach, to inform the test runner that it
should unload the appdomain prior to executing the test.

On Mar 6, 7:43 pm, Charlie Poole <[email protected]> wrote:
> Hi Lior,
>
> This is only possible if you do it yourself in your tests. As you can
> imagine, it would be chaos if tests were allowed to change the overall
> NUnit environment.
>
> Allowing selected tests to run in their own AppDomain using an
> attribute is certainly possible as a feature, but would have to be
> prioritized. If you decide to request it, please address it to the 3.0
> project athttp://launcpad.net/nunit-3.0since we won't be adding
> significant features to NUnit 2.6.
>
> Charlie
>
>
>
>
>
>
>
> On Tue, Mar 6, 2012 at 5:10 AM, liortal53 <[email protected]> wrote:
> > Hello all,
>
> > I am trying to create a few test methods that will verify whether
> > certain assemblies have been loaded (or NOT loaded into memory after
> > my App's initialization).
>
> > This seems to work on its own, however when i run all my tests (which
> > are contained in a single assembly), the assemblies i am testing if
> > loaded or not are loaded beforehand by other tests, and remain in
> > memory (in the AppDomain that is created by the test runner).
>
> > Is there any easy way to avoid this ? (without creating my own
> > AppDomain for every test, etc).
>
> > What i would like is to assure that before running any test, the
> > AppDomain that is currently loaded will be unloaded, or in short to
> > create an AppDomain per test method (or per methods that i will
> > specify).
>
> > Is this possible?
>
> > Thanks
> > Lior
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Seattle area Alt.Net" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/altnetseattle?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Seattle area Alt.Net" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/altnetseattle?hl=en.

Reply via email to