Пример #1
0
 /// <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="customMessageGenerator">Generates a 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,
     Func <string> customMessageGenerator
     )
 {
     return(not.AddImplementsMatcher <TInterface>(customMessageGenerator));
 }
Пример #2
0
 /// <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="customMessageGenerator">Generates a custom message to add to failure messages</param>
 /// <returns></returns>
 public static IMore <Type> Implement(
     this INotAfterTo <Type> not,
     Type expected,
     Func <string> customMessageGenerator
     )
 {
     return(not.AddImplementsMatcher(expected, customMessageGenerator));
 }