Exemplo n.º 1
0
 public void When_calling_the_IHttpHandler_ProcessRequest_method_an_InvalidOperationException_should_be_thrown_as_this_handler_is_designed_to_be_exclusively_called_asynchronously()
 {
     var handler = new IISHttpHandler(this.mockRouter.Object);
     ((IHttpHandler) handler).ProcessRequest(null);
 }
Exemplo n.º 2
0
 public void When_constructing_an_IISHttpHandler_the_router_argument_must_not_be_null()
 {
     var handler = new IISHttpHandler(null);
 }
Exemplo n.º 3
0
 public void When_calling_the_IHttpHandler_IsResuable_the_value_should_be_false()
 {
     var handler = new IISHttpHandler(this.mockRouter.Object);
     Assert.IsFalse(((IHttpHandler) handler).IsReusable);
 }