Allow for mapping of contents to our resources.
상속: System.Web.Hosting.VirtualPathProvider
예제 #1
0
        public void TestGetFileReturnResourceVirtualFile()
        {
            // Arrange
            var rvp = new ResourceVirtualPathProvider();
            rvp.Config = new PhunCmsConfigurationSection() { ResourceRoute = "BogusRoute" };

            // Act
            var result = rvp.GetFile("~/BogusRoute/blah");

            // Assert
            Assert.IsNotNull(result);
        }
예제 #2
0
        public void TestFileExistsReturnTrueForResourceRoute()
        {
            // Arrange
            var rvp = new ResourceVirtualPathProvider();
            rvp.Config = new PhunCmsConfigurationSection() { ResourceRoute = "BogusRoute" };

            // Act
            var result = rvp.FileExists("~/BogusRoute/blah");

            // Assert
            Assert.IsTrue(result);
        }