/// <summary> /// Expects that the Actual type implements the interface provided /// as a generic parameter /// </summary> /// <param name="to">Continuation to operate on</param> /// <param name="customMessageGenerator">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 IToAfterNot <Type> to, Func <string> customMessageGenerator ) { return(to.AddImplementsMatcher <TInterface>(customMessageGenerator)); }
/// <summary> /// Expects that the Actual type implements the interface provided /// as a generic parameter /// </summary> /// <param name="to">Continuation to operate on</param> /// <param name="expected">Interface type which should be implemented</param> /// <param name="customMessageGenerator">Custom message to add to failure messages</param> /// <returns></returns> public static IMore <Type> Implement( this IToAfterNot <Type> to, Type expected, Func <string> customMessageGenerator ) { return(to.AddImplementsMatcher(expected, customMessageGenerator)); }