コード例 #1
0
        public void CanGetWrappedInstance()
        {
            HttpContext wrappedContext =
                new HttpContext(new HttpRequest("", "http://foo/", null), new HttpResponse(new StringWriter()));

            CompositeWeb.Web.HttpContext httpContext = new CompositeWeb.Web.HttpContext(wrappedContext);

            Assert.AreEqual(wrappedContext, httpContext.Context);
        }
コード例 #2
0
        public void CanGetWrappedInstance()
        {
            HttpContext wrappedContext =
                new HttpContext(new HttpRequest("", "http://foo/", null), new HttpResponse(new StringWriter()));

            CompositeWeb.Web.HttpContext httpContext = new CompositeWeb.Web.HttpContext(wrappedContext);

            Assert.AreEqual(wrappedContext, httpContext.Context);
        }