예제 #1
0
 /// <summary>
 /// Creates a delegate with a spy on it. This can be used to test calls to parameters which
 /// are methods as well as spying on events.
 /// </summary>
 /// <param name="spy">The created spy.</param>
 /// <returns>The created delegate.</returns>
 public static Func <TParam1, TParam2, TParam3, TParam4, TParam5, TResult> CreateSpyFunc <TParam1, TParam2, TParam3, TParam4, TParam5, TResult>(out Spy spy)
 {
     return(DynamicSpyHelper.CreateSpyFunc <TParam1, TParam2, TParam3, TParam4, TParam5, TResult>(out spy));
 }
예제 #2
0
 /// <summary>
 /// Creates a delegate with a spy on it. This can be used to test calls to parameters which
 /// are methods as well as spying on events.
 /// </summary>
 /// <param name="spy">The created spy.</param>
 /// <returns>The created delegate.</returns>
 public static Func <TResult> CreateSpyFunc <TResult>(out Spy spy)
 {
     return(DynamicSpyHelper.CreateSpyFunc <TResult>(out spy));
 }
예제 #3
0
 /// <summary>
 /// Creates a delegate with a spy on it. This can be used to test calls to parameters which
 /// are methods as well as spying on events.
 /// </summary>
 /// <param name="spy">The created spy.</param>
 /// <returns>The created delegate.</returns>
 public static Action <TParam1> CreateSpy <TParam1>(out Spy spy)
 {
     return(DynamicSpyHelper.CreateSpy <TParam1>(out spy));
 }
예제 #4
0
 /// <summary>
 /// Creates a delegate with a spy on it. This can be used to test calls to parameters which
 /// are methods as well as spying on events.
 /// </summary>
 /// <param name="spy">The created spy.</param>
 /// <returns>The created delegate.</returns>
 public static Action <TParam1, TParam2, TParam3, TParam4, TParam5> CreateSpy <TParam1, TParam2, TParam3, TParam4, TParam5>(out Spy spy)
 {
     return(DynamicSpyHelper.CreateSpy <TParam1, TParam2, TParam3, TParam4, TParam5>(out spy));
 }
예제 #5
0
 /// <summary>
 /// Creates a delegate with a spy on it. This can be used to test calls to parameters which
 /// are methods as well as spying on events.
 /// </summary>
 /// <param name="spy">The created spy.</param>
 /// <returns>The created delegate.</returns>
 public static Action CreateSpy(out Spy spy)
 {
     return(DynamicSpyHelper.CreateSpy(out spy));
 }