示例#1
0
 /// <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));
 }
示例#2
0
 /// <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));
 }