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