コード例 #1
0
 internal SoThatWhenFunction(Mock <T> mockToArrange, Expression <Func <T, TResult> > functionToArrange)
 {
     _mockToArrange     = mockToArrange;
     _functionToArrange = functionToArrange;
     _functionToArrangeConvertedToMoqExpression = ExpressionConverter.ConvertArrangeMockExpressionToMoqExpression(_functionToArrange);
     _moqExpressionCastToOriginalType           = (Expression <Func <T, TResult> >)_functionToArrangeConvertedToMoqExpression;
 }
コード例 #2
0
 internal SoThatWhenAction(Mock <T> mockToArrange, Expression <Action <T> > actionToArrange)
 {
     _mockToArrange   = mockToArrange;
     _actionToArrange = actionToArrange;
     _actionToArrangeConvertedToMoqExpression = ExpressionConverter.ConvertArrangeMockExpressionToMoqExpression(_actionToArrange);
     _moqExpressionCastToOriginalType         = (Expression <Action <T> >)_actionToArrangeConvertedToMoqExpression;
 }