/// <summary> /// Adds a method return to the return queue. /// </summary> /// <param name="methodInfo">The reflection information of the method.</param> /// <param name="target"> /// The target object. Must be given for instance-based, non-adapter methods, /// must be null otherwise. /// </param> /// <param name="arguments">the arguments to the return method.</param> public void AddReturn(MethodBase methodInfo, object target, params object[] arguments) { returnQueue.Add(new AvailableReturn(methodInfo, arguments)); }
public void LogEvent(EventInfo info, params object[] arguments) { queue.Add(new AvailableEvent(info, arguments)); }
/// <summary> /// Adds an event to the event queue. /// </summary> /// <param name="eventInfo">The reflection information of the event.</param> /// <param name="target"> /// The target object. Must be given for instance-based, non-adapter methods, /// otherwise must be null. /// </param> /// <param name="arguments">the arguments to the return method.</param> public void AddEvent(EventInfo eventInfo, object target, params object[] arguments) { eventQueue.Add(new AvailableEvent(eventInfo, arguments)); }