I'm not a web developer, so someone else will have to give a definitive answer.
That said, the HostingEnvironment class represents the application
environment under which your ASP.Net application is running. When you
are running NUnit, you are not running under such an environment, so
you will have to find some way to simulate it. Most likely, for this
call, you will need something in the config.
Charlie
> --
> You received this message because you are subscribed to the Google Groups
> "NUnit-Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
nunit-discus...@googlegroups.com.
> To post to this group, send email to
nunit-...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/nunit-discuss.
> For more options, visit
https://groups.google.com/d/optout.