C# Stubbing HttpApplicationCompleteRequest() causing NullReferenceException

65 views Asked by At

I have this setup in my unit test

HttpApplication application = MockRepository.GenerateStub<HttpApplication>();
application.Stub(a => a.CompleteRequest());

And when I run the tests it throws a NullReferenceException on the second line. This is confusing to me because up above it is mocked.

0

There are 0 answers