/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }