I have a class library that uses HttpContext a lot, but I am having trouble writing unit tests for the functions. e.g. System.Web.HttpContext.Current.Request.ApplicationPath always return null, that makes class library throws exceptions everywhere. I am not allowed to change the source codes of class library, so please let me know how to write test cases against it.
View Complete Post