예제 #1
0
 /// <summary>
 /// Checks that the actual expression is in the inheritance hierarchy of the given kind or of the same kind.
 /// </summary>
 /// <typeparam name="T">The Type which is expected to be a base Type of the actual expression.</typeparam>
 /// <param name="check">The fluent check to be extended.</param>
 /// <exception cref="FluentCheckException">The checked expression is not in the inheritance hierarchy of the given kind.</exception>
 public static void InheritsFrom <T>(this ICheck <object> check)
 {
     check.InheritsFromType(typeof(T));
 }