예제 #1
0
        public override void Invoke(IInvocation invocation)
        {
            base.Invoke(invocation);

            this.LastCall = invocation;
            if (callBase)
                invocation.InvokeBase();
            else
                invocation.ReturnValue = this.defaultValue;
        }
예제 #2
0
        public override void Invoke(IInvocation invocation)
        {
            base.Invoke(invocation);

            this.LastCall = invocation;
            if (callBase)
            {
                invocation.InvokeBase();
            }
            else
            {
                invocation.ReturnValue = this.defaultValue;
            }
        }
예제 #3
0
        /// <summary>
        /// Sets the return value to the default one according 
        /// to the return type, as implemented by <see cref="DefaultValue"/>.
        /// </summary>
        public AspectAction ExecuteFor(IInvocation invocation)
		{
            invocation.InvokeBase();

			return AspectAction.Stop;
		}
예제 #4
0
파일: CallBase.cs 프로젝트: seiya1223/moq
        /// <summary>
        /// Sets the return value to the default one according
        /// to the return type, as implemented by <see cref="DefaultValue"/>.
        /// </summary>
        public AspectAction ExecuteFor(IInvocation invocation)
        {
            invocation.InvokeBase();

            return(AspectAction.Stop);
        }