示例#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="customMessage">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,
     string customMessage
     )
 {
     return(to.Implement <TInterface>(() => customMessage));
 }
示例#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>
 /// <returns></returns>
 public static IMore <Type> Implement(
     this IToAfterNot <Type> to,
     Type expected
     )
 {
     return(to.Implement(expected, NULL_STRING));
 }
示例#3
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="customMessage">Custom message to add to failure messages</param>
 /// <returns></returns>
 public static IMore <Type> Implement(
     this IToAfterNot <Type> to,
     Type expected,
     string customMessage
     )
 {
     return(to.Implement(expected, () => customMessage));
 }
示例#4
0
 /// <summary>
 /// Expects that the Actual type implements the interface provided
 /// as a generic parameter
 /// </summary>
 /// <param name="to">Continuation to operate on</param>
 /// <typeparam name="TInterface">Interface type to look for</typeparam>
 /// <returns></returns>
 public static IMore <Type> Implement <TInterface>(
     this IToAfterNot <Type> to
     )
 {
     return(to.Implement <TInterface>(NULL_STRING));
 }