Ejemplo n.º 1
0
Archivo: Mock.cs Proyecto: belav/moq4
        void IInterceptor.Intercept(Invocation invocation)
        {
            if (HandleWellKnownMethods.Handle(invocation, this))
            {
                return;
            }

            RecordInvocation.Handle(invocation, this);

            if (FindAndExecuteMatchingSetup.Handle(invocation, this))
            {
                return;
            }

            if (HandleAutoSetupProperties.Handle(invocation, this))
            {
                return;
            }

            if (HandleEventSubscription.Handle(invocation, this))
            {
                return;
            }

            FailForStrictMock.Handle(invocation, this);

            Return.Handle(invocation, this);
        }
Ejemplo n.º 2
0
        void IInterceptor.Intercept(Invocation invocation)
        {
            if (HandleWellKnownMethods.Handle(invocation, this))
            {
                return;
            }

            if (HandleEventSubscription.Handle(invocation, this))
            {
                return;
            }

            RecordInvocation.Handle(invocation, this);

            if (FindAndExecuteMatchingSetup.Handle(invocation, this))
            {
                return;
            }

            Return.Handle(invocation, this);
        }