/// <summary> /// Tests if the provided type is decorated with TAttribute /// </summary> /// <param name="have"></param> /// <param name="customMessage"></param> /// <typeparam name="TAttribute"></typeparam> /// <returns></returns> public static IMore <Type> Attribute <TAttribute>( this IHave <Type> have, string customMessage ) where TAttribute : Attribute { return(have.Attribute <TAttribute>(() => customMessage)); }
/// <summary> /// Tests if the provided type is decorated with TAttribute /// </summary> /// <param name="have"></param> /// <typeparam name="TAttribute"></typeparam> /// <returns></returns> public static IMore <Type> Attribute <TAttribute>( this IHave <Type> have ) where TAttribute : Attribute { return(have.Attribute <TAttribute>(NULL_STRING)); }