示例#1
0
文件: Mock.cs 项目: 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);
        }
示例#2
0
文件: Mock.cs 项目: odemeniuk/moq4
        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);
        }