Esempio n. 1
0
 /// <summary>
 /// Expects a file or folder not to exist at the provided path
 /// </summary>
 /// <param name="to"></param>
 /// <param name="customMessageGenerator">Generates a custom message to add to failure messages</param>
 /// <returns></returns>
 public static IStringMore Exist(
     this IStringToAfterNot to,
     Func <string> customMessageGenerator)
 {
     to.AddMatcher(actual =>
                   ResolveFileResultFor(actual, customMessageGenerator)
                   );
     return(to.More());
 }
Esempio n. 2
0
 /// <summary>
 /// Expects a file or folder not to exist at the provided path
 /// </summary>
 /// <param name="to"></param>
 /// <param name="customMessage">Custom message to add to failure messages</param>
 /// <returns></returns>
 public static IStringMore Exist(
     this IStringToAfterNot to,
     string customMessage)
 {
     return(to.Exist(() => customMessage));
 }
Esempio n. 3
0
 /// <summary>
 /// Expects a file or folder not to exist at the provided path
 /// </summary>
 /// <param name="to"></param>
 /// <returns></returns>
 public static IStringMore Exist(
     this IStringToAfterNot to)
 {
     return(to.Exist(NULL_STRING));
 }