Httpcontext.Current doesn't work with NUnit
Hi Team,
I am facing a problem which is related to NUnit Case.
I have a MVC application usng ASP.NET (SP1). I am done woth my site and now I am trying to write the Unit case for the same.
But, method defined in Test class are unable to run HttpContext.Current.Server.MapPath() . that peice of code gives me NullPointerException : object reference not set properly.
I have seen a lot in google, but couldn't find the proper solution till now.
I need you helpfull....
Thanks! in advance.
rgds,
...pankajbahuguna
__________________
Thanks
-Pankaj Bahuguna
|