/// <summary> /// Tests if an object has a given property, may continue on to test /// the property value /// </summary> /// <param name="have"></param> /// <param name="property"></param> /// <typeparam name="T"></typeparam> /// <returns></returns> public static IMore <T> Property <T>( this IHave <T> have, string property ) { return(have.Property(property, NULL_STRING)); }
/// <summary> /// Tests if an object has a given property, may continue on to test /// the property value /// </summary> /// <param name="have"></param> /// <param name="property"></param> /// <param name="customMessage"></param> /// <typeparam name="T"></typeparam> /// <returns></returns> public static IMore <T> Property <T>( this IHave <T> have, string property, string customMessage ) { return(have.Property(property, () => customMessage)); }