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"));
        }
Ejemplo n.º 2
0
 public override bool Exists(string fileName)
 {
     return(_fileSystem.FileExists(Path.Combine(_basePath, fileName)));
 }
Ejemplo n.º 3
0
 public override bool Exists(string fileName)
 {
     return(_fileSystem.FileExists(Utilities.CombinePaths(_basePath, fileName)));
 }