On Fri, Sep 10, 2010 at 11:45 PM, Wallace Turner wrote:
> *this is just a though*
>
> Are you testing HttpContext.Current.GetGlobalResource( ) itself or the code
> up until that point?
>
> If the latter then could you replace all your GetGlobalResource( ) calls
> with your own static method? You c
*this is just a though*
Are you testing HttpContext.Current.GetGlobalResource( ) itself or the code
up until that point?
If the latter then could you replace all your GetGlobalResource( ) calls
with your own static method? You could then use IoC to plugin in either the
real GetGlobalResource or y
Has anyone done anything in this area?
The problem is, when tests are run from your unit testing framework
(NUnit in my case), the calls to
HttpContext.Current.GetGlobalResource(...) fail, obviously because
there is no current HttpContext, but also perhaps less obviously
because the resources don'