Unit testing session and application variables without mocking

If you have been unit testing your asp.net web applications that use session and application variables┬áthen you almost certainly have encountered this problem and asked yourself “How to unit test HttpContext.Current variables?”.┬áThe general answer you would find online is use…