/// <summary> /// Initializes a new instance of the <see cref="Invocation"/> class. /// </summary> /// <param name="receiver">The receiver providing the method.</param> /// <param name="method">The method.</param> /// <param name="parameters">The parameters passed to the method..</param> public Invocation(object receiver, MethodInfo method, object[] parameters) { Receiver = receiver; Method = method; Parameters = new ParameterList(method, parameters); }
public void SetUp() { ParameterInfo inParam = new ParameterInfoStub("inParam", ParameterAttributes.In); ParameterInfo refParam = new ParameterInfoStub("refParam", ParameterAttributes.None); ParameterInfo outParam = new ParameterInfoStub("outParam", ParameterAttributes.Out); method = new MethodInfoStub("method", inParam, refParam, outParam); parameterValues = new[] {inValue, refValue, null}; list = new ParameterList(method, parameterValues); }