Beispiel #1
0
 public void Should_defer_execute_operations_returning_result_to_attribute_one_way_1(ReturnPolicy executionMode)
 {
     GetInvocationHelper(executionMode).DontNotifyAgain("test");
     _oneWayInterceptor.AssertWasCalled(i => i.Invoke(Arg <IMethodInvocation> .Is.Anything));
     _twoWayInterceptor.AssertWasNotCalled(i => i.Invoke(Arg <IMethodInvocation> .Is.Anything));
 }
Beispiel #2
0
 public void Should_always_execute_operations_returning_result_as_two_way(ReturnPolicy executionMode)
 {
     GetInvocationHelper(executionMode).Hello(5);
     _twoWayInterceptor.AssertWasCalled(i => i.Invoke(Arg <IMethodInvocation> .Is.Anything));
     _oneWayInterceptor.AssertWasNotCalled(i => i.Invoke(Arg <IMethodInvocation> .Is.Anything));
 }