/// <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)); }
/// <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)); }