Exemple #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="TBase">Interface type to look for</typeparam>
 /// <returns></returns>
 public static IMore <Type> Inherit <TBase>(
     this INotAfterTo <Type> not,
     Func <string> customMessageGenerator
     )
 {
     return(not.AddInheritsMatcher <TBase>(customMessageGenerator));
 }
Exemple #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="customMessage">Custom message to add to failure messages</param>
 /// <typeparam name="TBase">Interface type to look for</typeparam>
 /// <returns></returns>
 public static IMore <Type> Inherit <TBase>(
     this INotAfterTo <Type> not,
     string customMessage
     )
 {
     return(not.AddInheritsMatcher <TBase>(() => customMessage));
 }