public VerifyReceivedCallBenchmark()
        {
            _interfaceProxy = Substitute.For <IInterfaceWithSingleMethod>();
            _interfaceProxy.IntMethod("42");
            _interfaceProxy.VoidMethod("42");

            _abstractClassProxy = Substitute.For <AbstractClassWithSingleMethod>();
            _abstractClassProxy.IntMethod("42");
            _abstractClassProxy.VoidMethod("42");

            _classPartialProxy = Substitute.For <ClassWithSingleMethod>();
            _classPartialProxy.IntMethod("42");
            _classPartialProxy.VoidMethod("42");

            _intDelegateProxy = Substitute.For <IntDelegate>();
            _intDelegateProxy("42");

            _voidDelegateProxy = Substitute.For <VoidDelegate>();
            _voidDelegateProxy("42");
        }
Esempio n. 2
0
 public void DispatchAbstractClassProxyCall_Void() => _abstractClassProxy.VoidMethod(null);