public void ExpectSetter(Delegate setterStub, CallHistoryBase callHistory) { this.expectedSetterOperation = new Operation { Delegate = setterStub, CallHistory = callHistory }; }
/// <summary> /// Register <paramref name="instead"/> to be executed when <paramref name="method"/> is called. /// Uses MethodInfo.ToString(), which uniquely identifies any possible signature. /// </summary> public void RegisterOperation(MethodInfo method, Delegate instead, CallHistoryBase stubbedOperation) { operations[method.ToString()] = new Operation() { Delegate = instead, CallHistory = stubbedOperation }; }