Example #1
0
File: Mock.cs Project: 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);
        }
Example #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);
        }