public void CanDeleteDirectoryWithContent() { TemporaryDirectoryHandler directory = new TemporaryDirectoryHandler().Create(); string fileName = directory.GetPath("test.txt"); File.WriteAllText(fileName, String.Empty); Assert.True(directory.Delete()); }
public void CanDeleteEmptyDirectory() { TemporaryDirectoryHandler directory = new TemporaryDirectoryHandler().Create(); Assert.True(directory.Delete()); }