I'm applying Unit Testing to one of my projects (in a seperate project) and I'm experiencing issues with there not being a HttpContext.Current object (obviously). - The test methods have all been created using the Unit Test Wizard in VS2010 to save me some
time (Project is very extensive)
A heap of my methods require a valid HttpContext and I was wondering what the easiest way to implement something in my test project to get around this issue?
InterOrion
Member
194 Points
305 Posts
Applying unit testing - Getting error with HttpContext
Jun 18, 2012 04:45 AM|LINK
Hey all,
I'm applying Unit Testing to one of my projects (in a seperate project) and I'm experiencing issues with there not being a HttpContext.Current object (obviously). - The test methods have all been created using the Unit Test Wizard in VS2010 to save me some time (Project is very extensive)
A heap of my methods require a valid HttpContext and I was wondering what the easiest way to implement something in my test project to get around this issue?
Thanks.