Example #1
0
 public static ConfiguredCall ReturnsNullForAnyArgs <T>(this ValueTask <T> value) where T : class =>
 value.ReturnsForAnyArgs(default(T));
Example #2
0
 /// <summary>
 /// Set null as returned value for this call made with any arguments.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="value"></param>
 /// <returns></returns>
 public static ConfiguredCall ReturnsNullForAnyArgs <T>(this ValueTask <T> value) where T : class
 {
     return(value.ReturnsForAnyArgs(i => SubstituteExtensions.CompletedValueTask <T>(null)));
 }