internal SoThatWhenFunction(Mock <T> mockToArrange, Expression <Func <T, TResult> > functionToArrange) { _mockToArrange = mockToArrange; _functionToArrange = functionToArrange; _functionToArrangeConvertedToMoqExpression = ExpressionConverter.ConvertArrangeMockExpressionToMoqExpression(_functionToArrange); _moqExpressionCastToOriginalType = (Expression <Func <T, TResult> >)_functionToArrangeConvertedToMoqExpression; }
internal SoThatWhenAction(Mock <T> mockToArrange, Expression <Action <T> > actionToArrange) { _mockToArrange = mockToArrange; _actionToArrange = actionToArrange; _actionToArrangeConvertedToMoqExpression = ExpressionConverter.ConvertArrangeMockExpressionToMoqExpression(_actionToArrange); _moqExpressionCastToOriginalType = (Expression <Action <T> >)_actionToArrangeConvertedToMoqExpression; }