예제 #1
0
        public ISetupSetter <T, TProperty> ExpectSet <TProperty>(Action <T> setterExpression, Times times, string failMessage)
        {
            VerifyActions.Add(() => Source.VerifySet(setterExpression, times, failMessage));
            var setup = Source.SetupSet <TProperty>(setterExpression);

            setup.Verifiable();
            return(setup);
        }
예제 #2
0
        public ISetup <T, TResult> Expect <TResult>(Expression <Func <T, TResult> > expression, Times times, string failMessage)
        {
            VerifyActions.Add(() => Source.Verify(expression, times, failMessage));
            var setup = Source.Setup(expression);

            setup.Verifiable();
            return(setup);
        }
예제 #3
0
        public ISetupGetter <T, TProperty> ExpectGet <TProperty>(Expression <Func <T, TProperty> > expression, Times times, string failMessage)
        {
            VerifyActions.Add(() => Source.VerifyGet(expression, times, failMessage));
            var setup = Source.SetupGet(expression);

            setup.Verifiable();
            return(setup);
        }