Get virtual file from resource. Also use as a utility class.
Inheritance: System.Web.Hosting.VirtualFile
        public void TestOpenThrowExceptionForNullResult()
        {
            // Arrange
            var rvf = new ResourceVirtualFile("~/PhunCms/Scripts/blah.js");

            // Act
            rvf.Open();
        }
        public void TestOpenReturnAValidStream()
        {
            // Arrange
            var rvf = new ResourceVirtualFile("~/PhunCms/scripts/jquery.js");

            // Act
            var stream = rvf.Open();

            // Assert
            Assert.IsNotNull(stream);
        }
        public void TestOpenReturnStaticResourceVirtualFile()
        {
            // Arrange
            var rvf = new ResourceVirtualFile("~/PhunCms/scripts/phuncms.config.js");

            // Act
            using (var result = rvf.Open())
            {
                var data = System.Text.Encoding.ASCII.GetString(result.ReadAll());

                // Assert
                Assert.IsTrue(data.Contains("window.PhunCms"));
            }
        }
 /// <summary>
 /// Enables processing of HTTP Web requests by a custom HttpHandler that implements the <see cref="T:System.Web.IHttpHandler" /> interface.
 /// </summary>
 /// <param name="context">An <see cref="T:System.Web.HttpContext" /> object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.</param>
 public void ProcessRequest(HttpContext context)
 {
     var vf = new ResourceVirtualFile(context.Request.Path);
     vf.WriteFile(new HttpContextWrapper(context));
 }