C# Class Moq.FromInstance.MoqFromInstanceMockingEngineTemplate

Moq specific IFromInstanceMockingEngineTemplate, which adds support for Moq to FromInstanceMockingEngine.
Inheritance: IFromInstanceMockingEngineTemplate
Exibir arquivo Open project: SkyKick/RhinoMoq.FromInstance

Public Methods

Method Description
BuildReturnsMethod ( Type mockTargetType, Type mockedMethodReturnType, object mock, object instance ) : MethodInfo
BuildSetupMethodFunctionType ( Type mockTargetType, Type mockedMethodReturnType ) : Type
ExecuteSetupMethod ( Type mockTargetType, Type mockedMethodReturnType, object mock, object setupExpression ) : object

Method Details

BuildReturnsMethod() public method

public BuildReturnsMethod ( Type mockTargetType, Type mockedMethodReturnType, object mock, object instance ) : MethodInfo
mockTargetType System.Type
mockedMethodReturnType System.Type
mock object
instance object
return System.Reflection.MethodInfo

BuildSetupMethodFunctionType() public method

public BuildSetupMethodFunctionType ( Type mockTargetType, Type mockedMethodReturnType ) : Type
mockTargetType System.Type
mockedMethodReturnType System.Type
return System.Type

ExecuteSetupMethod() public method

public ExecuteSetupMethod ( Type mockTargetType, Type mockedMethodReturnType, object mock, object setupExpression ) : object
mockTargetType System.Type
mockedMethodReturnType System.Type
mock object
setupExpression object
return object