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); }
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); }
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); }