Beispiel #1
0
 public void ExpectSetter(Delegate setterStub, CallHistoryBase callHistory)
 {
     this.expectedSetterOperation = new Operation
     {
         Delegate    = setterStub,
         CallHistory = callHistory
     };
 }
Beispiel #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
     };
 }