public void DeleteTree() { using (var testEnvironment = StreamTestEnvironment.FromExistingVhdx(true)) { using (var filesystem = new ExFatPathFilesystem(testEnvironment.PartitionStream)) { filesystem.DeleteTree(DiskContent.LongFolderFileName); Assert.IsFalse(filesystem.EnumerateEntries("") .Any(e => e.Path == $@"\{DiskContent.LongFolderFileName}")); } } }
/// <inheritdoc /> public override void DeleteDirectory(string path) { _filesystem.DeleteTree(path); }