Beispiel #1
0
 /// <summary>
 ///   Haves the minimum length.
 /// </summary>
 /// <typeparam name="TOwner">
 ///   The type of the owner.
 /// </typeparam>
 /// <param name="should">
 ///   The should.
 /// </param>
 /// <param name="length">
 ///   The length.
 /// </param>
 /// <returns></returns>
 public static TOwner HaveMinLength <TOwner>(this IFieldVerificationProvider <string, ValidationMessage <TOwner>, TOwner> should, int length)
     where TOwner : PageObject <TOwner>
 {
     return(should.EndWithIgnoringCase($"field must be at least {length} characters."));
 }
Beispiel #2
0
 /// <summary>
 ///   Bes the required.
 /// </summary>
 /// <typeparam name="TOwner">
 ///   The type of the owner.
 /// </typeparam>
 /// <param name="should">
 ///   The should.
 /// </param>
 /// <returns></returns>
 public static TOwner BeRequired <TOwner>(this IFieldVerificationProvider <string, ValidationMessage <TOwner>, TOwner> should)
     where TOwner : PageObject <TOwner>
 {
     return(should.EndWithIgnoringCase("field is required."));
 }