Esempio n. 1
0
 /// <summary>
 /// Tests the type on a property With continuation
 /// </summary>
 /// <param name="with"></param>
 /// <param name="expected"></param>
 /// <typeparam name="T"></typeparam>
 /// <returns></returns>
 public static IMore <T> Type <T>(
     this IAnd <T> with,
     Type expected
     )
 {
     return(with.Type(expected, NULL_STRING));
 }
Esempio n. 2
0
 /// <summary>
 /// Tests the type on a property With continuation
 /// </summary>
 /// <param name="with"></param>
 /// <param name="expected"></param>
 /// <param name="customMessage"></param>
 /// <typeparam name="T"></typeparam>
 /// <returns></returns>
 public static IMore <T> Type <T>(
     this IAnd <T> with,
     Type expected,
     string customMessage
     )
 {
     return(with.Type(expected, () => customMessage));
 }