public void ShouldDeleteDirectory() { var directory = GetNonExistentTempFileName(); Directory.CreateDirectory(directory); File.Create(Path.Combine(directory, "file.ext")).Close(); _sut.DeleteDirectoryWithContent(directory); Assert.IsFalse(Directory.Exists(directory)); }