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