Пример #1
0
 /// <summary>
 /// Call this method in a lamba expression to state that an argument to a method being mocked should not be null.
 /// </summary>
 /// <remarks>
 /// Note that ConvertibleConstraintWrapper is implicitly convertible to T, unless T is an interface. In that case,
 ///   Convert() must be called on the return object.
 /// </remarks>
 /// <typeparam name="T">
 /// The type of the return value
 /// </typeparam>
 public static ConvertibleConstraintWrapper <T> NotNull <T>() where T : class
 {
     return(new ConvertibleConstraintWrapper <T>(MockConstraint.IsNotNull <T>()));
 }