public void When_appfunc_paramater_is_null_Then_should_throw() { Action act = () => { var handler = new OwinHttpMessageHandler((AppFunc)null); }; act.ShouldThrow<ArgumentNullException>(); }