Author: MightyC | Posted on: 3/30/2010 7:36:47 AM | Views : 261

Hi. I have a problem writing a unit test for a method that adds an event handler. The method I'm testing looks like this
void Init(HttpApplication context)
{
    // Register for key processing requests.
    context.AuthenticateRequest += new EventHandler(MyOnEnter);
}

I am trying to write a unit test for it. So far, my unit test code looks like this:

Go to the complete details ...