I created a class that inherits System.Web.UI.Page.
In that class I override some application lifecycle events like page_load and page_init. Before calling the base of those events I check session values, cookies and things like that.
I would like to Unit test the methods that check the sessions and cookies. I am already able to mock the session and cookie objects. Is it possible to Unit test the application life cycle events? Or is my only option to totally re-factor the class so that all methods called from within the life cycle events are in a separate class?