Ejemplo n.º 1
0
 public static bool TryDeleteFile(string dirPath, string fileName)
 {
     return(Do.TryBool(() =>
                       Do.GenerateTest(() =>
                                       Path.Combine(dirPath, fileName),
                                       s => File.Exists(s),
                                       s => TryDeleteFile(s),
                                       s => { })));
 }