示例#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);
        }
        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);
        }