Esempio n. 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">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 IToAfterNot <Type> to,
     Func <string> customMessageGenerator
     )
 {
     return(to.AddInheritsMatcher <TBase>(customMessageGenerator));
 }
Esempio n. 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="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 IToAfterNot <Type> to,
     string customMessage
     )
 {
     return(to.AddInheritsMatcher <TBase>(() => customMessage));
 }