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); }
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); }