/// <summary> /// Expects that the Actual type implements the interface provided /// as a generic parameter /// </summary> /// <param name="not">Continuation to operate on</param> /// <param name="customMessage">Custom message to add to failure messages</param> /// <typeparam name="TInterface">Interface type to look for</typeparam> /// <returns></returns> public static IMore <Type> Implement <TInterface>( this INotAfterTo <Type> not, string customMessage ) { return(not.Implement <TInterface>(() => customMessage)); }
/// <summary> /// Expects that the Actual type implements the interface provided /// as a generic parameter /// </summary> /// <param name="not">Continuation to operate on</param> /// <param name="expected">Interface type which should be implemented</param> /// <returns></returns> public static IMore <Type> Implement( this INotAfterTo <Type> not, Type expected ) { return(not.Implement(expected, NULL_STRING)); }
/// <summary> /// Expects that the Actual type implements the interface provided /// as a generic parameter /// </summary> /// <param name="not">Continuation to operate on</param> /// <param name="expected">Interface type which should be implemented</param> /// <param name="customMessage">Custom message to add to failure messages</param> /// <returns></returns> public static IMore <Type> Implement( this INotAfterTo <Type> not, Type expected, string customMessage ) { return(not.Implement(expected, () => customMessage)); }
/// <summary> /// Expects that the Actual type implements the interface provided /// as a generic parameter /// </summary> /// <param name="not">Continuation to operate on</param> /// <typeparam name="TInterface">Interface type to look for</typeparam> /// <returns></returns> public static IMore <Type> Implement <TInterface>( this INotAfterTo <Type> not ) { return(not.Implement <TInterface>(NULL_STRING)); }