Base class for all call history objects. Only used internally.
Ejemplo n.º 1
0
 public void ExpectSetter(Delegate setterStub, CallHistoryBase callHistory)
 {
     this.expectedSetterOperation = new Operation
     {
         Delegate = setterStub,
         CallHistory = callHistory
     };
 }
Ejemplo n.º 2
0
 /// <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
     };
 }