コード例 #1
0
        public void FileExistsTest()
        {
            AppInternalsPathProvider target = new AppInternalsPathProvider();

            string virtualPath = "~/appinternals/configurations/files/global.asax";
            Assert.IsTrue( target.FileExists( virtualPath ) );
        }       
コード例 #2
0
 /// <summary>
 /// constructor to initialize the member values of the local instance and of the base class
 /// </summary>
 /// <param name="virtualPath"></param>
 /// <param name="provider"></param>
 public AppInternalsVirtualFile(string virtualPath, AppInternalsPathProvider provider)
     : base(virtualPath)
 {
     this.path = virtualPath.ToLower();
     this.provider = provider;
 }