public void Delete(NewFileSystemDelegate fsFactory)
        {
            DiscFileSystem fs = fsFactory();

            using (Stream s = fs.OpenFile("foo.txt", FileMode.Create)) { }
            fs.GetFileInfo("foo.txt").Delete();

            Assert.IsFalse(fs.FileExists("foo.txt"));
        }
예제 #2
0
 public override bool Exists(string fileName)
 {
     return(_fileSystem.FileExists(Path.Combine(_basePath, fileName)));
 }
예제 #3
0
 public override bool Exists(string fileName)
 {
     return(_fileSystem.FileExists(Utilities.CombinePaths(_basePath, fileName)));
 }