IFunctionExpectation
Interface used to arrange and call local functions.
Definition
Namespace:Telerik.JustMock.Expectations.Abstraction.Local.Function
Assembly:Telerik.JustMock.dll
Syntax:
public interface IFunctionExpectation
Methods
Arranges a local function for mocking.
ActionExpectation Arrange(object target, MethodInfo method, string localFunctionName, params object[] args)
Target instance
methodMethodInfoMetadata for the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function for mocking.
ActionExpectation Arrange(object target, string methodName, string localFunctionName, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function for mocking.
ActionExpectation Arrange(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function for mocking.
ActionExpectation Arrange(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function for mocking.
ActionExpectation Arrange(object target, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function for mocking.
ActionExpectation Arrange(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function for mocking.
ActionExpectation Arrange(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function inside static method for mocking.
ActionExpectation Arrange(Type type, MethodInfo method, string localFunctionName, params object[] args)
The type with static method containing local function
methodMethodInfoMetadata of the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function inside static method for mocking.
ActionExpectation Arrange(Type type, string methodName, string localFunctionName, params object[] args)
The type with static method containing local function
methodNamestringName of the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function inside static method for mocking.
ActionExpectation Arrange(Type type, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)
The type with static method containing local function
methodNamestringName of the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Local function arguments
Returns:Arranges a local function inside static method for mocking.
ActionExpectation Arrange(Type type, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
The type with static method containing local function
methodNamestringName of the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Local function arguments
Returns:Arranges a local function inside static method for mocking.
ActionExpectation Arrange(Type type, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)
The type with static method containing local function
methodNamestringName of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function inside static method for mocking.
ActionExpectation Arrange(Type type, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)
The type with static method containing local function
methodNamestringName of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function inside static method for mocking.
ActionExpectation Arrange(Type type, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
The type with static method containing local function
methodNamestringName of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function inside static method for mocking.
FuncExpectation<TReturn> Arrange<T, TReturn>(MethodInfo method, string localFunctionName, params object[] args)
Metadata of the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function inside static method for mocking.
FuncExpectation<TReturn> Arrange<T, TReturn>(string methodName, string localFunctionName, params object[] args)
Name of the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function inside static method for mocking.
FuncExpectation<TReturn> Arrange<T, TReturn>(string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Name of the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function inside static method for mocking.
FuncExpectation<TReturn> Arrange<T, TReturn>(string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Name of the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function inside static method for mocking.
FuncExpectation<TReturn> Arrange<T, TReturn>(string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)
Name of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function inside static method for mocking.
FuncExpectation<TReturn> Arrange<T, TReturn>(string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Name of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function inside static method for mocking.
FuncExpectation<TReturn> Arrange<T, TReturn>(string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Name of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function inside static method for mocking.
ActionExpectation Arrange<T>(MethodInfo method, string localFunctionName, params object[] args)
Metadata of the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function inside static method for mocking.
ActionExpectation Arrange<T>(string methodName, string localFunctionName, params object[] args)
Name of the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function inside static method for mocking.
ActionExpectation Arrange<T>(string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Name of the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function inside static method for mocking.
ActionExpectation Arrange<T>(string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Name of the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function inside static method for mocking.
ActionExpectation Arrange<T>(string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)
Name of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function inside static method for mocking.
ActionExpectation Arrange<T>(string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Name of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function inside static method for mocking.
ActionExpectation Arrange<T>(string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Name of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Local function arguments
Returns:Reference to setup actions calls
Arranges a local function for mocking.
FuncExpectation<TReturn> Arrange<TReturn>(object target, MethodInfo method, string localFunctionName, params object[] args)
Target instance
methodMethodInfoMetadata for the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function for mocking.
FuncExpectation<TReturn> Arrange<TReturn>(object target, string methodName, string localFunctionName, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function for mocking.
FuncExpectation<TReturn> Arrange<TReturn>(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function for mocking.
FuncExpectation<TReturn> Arrange<TReturn>(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function for mocking.
FuncExpectation<TReturn> Arrange<TReturn>(object target, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function for mocking.
FuncExpectation<TReturn> Arrange<TReturn>(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function for mocking.
FuncExpectation<TReturn> Arrange<TReturn>(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function inside static method for mocking.
FuncExpectation<TReturn> Arrange<TReturn>(Type type, MethodInfo method, string localFunctionName, params object[] args)
The type with static method containing local function
methodMethodInfoMetadata of the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function inside static method for mocking.
FuncExpectation<TReturn> Arrange<TReturn>(Type type, string methodName, string localFunctionName, params object[] args)
The type with static method containing local function
methodNamestringName of the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function inside static method for mocking.
FuncExpectation<TReturn> Arrange<TReturn>(Type type, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)
The type with static method containing local function
methodNamestringName of the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function inside static method for mocking.
FuncExpectation<TReturn> Arrange<TReturn>(Type type, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
The type with static method containing local function
methodNamestringName of the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function inside static method for mocking.
FuncExpectation<TReturn> Arrange<TReturn>(Type type, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)
The type with static method containing local function
methodNamestringName of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function inside static method for mocking.
FuncExpectation<TReturn> Arrange<TReturn>(Type type, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)
The type with static method containing local function
methodNamestringName of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Arranges a local function inside static method for mocking.
FuncExpectation<TReturn> Arrange<TReturn>(Type type, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
The type with static method containing local function
methodNamestringName of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Local function arguments
Returns:FuncExpectation<TReturn>
Reference to setup actions calls
Asserts the specified local function that it is called as expected.
void Assert(object target, MethodInfo method, string localFunctionName, Occurs occurs, params object[] args)
Target mock
methodMethodInfoMetadata for the method where the local function is nested
localFunctionNamestringName of the nested local function
occursOccursSpecifies the number of times a call should occur.
argsobject[]Method arguments
Asserts the specified local function that it is called as expected.
void Assert(object target, MethodInfo method, string localFunctionName, params object[] args)
Target mock
methodMethodInfoMetadata for the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Method arguments
Asserts the specified local function that it is called as expected.
void Assert(object target, string methodName, string localFunctionName, Occurs occurs, params object[] args)
Target mock
methodNamestringName of the where the local function is nested
localFunctionNamestringName of the nested local function
occursOccursSpecifies the number of times a call should occur.
argsobject[]Method arguments
Asserts the specified local function that it is called as expected.
void Assert(object target, string methodName, string localFunctionName, Occurs occurs, Type[] methodGenericTypes, params object[] args)
Target mock
methodNamestringName of the where the local function is nested
localFunctionNamestringName of the nested local function
occursOccursSpecifies the number of times a call should occur.
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Method arguments
Asserts the specified local function that it is called as expected.
void Assert(object target, string methodName, string localFunctionName, Occurs occurs, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Target mock
methodNamestringName of the where the local function is nested
localFunctionNamestringName of the nested local function
occursOccursSpecifies the number of times a call should occur.
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Method arguments
Asserts the specified local function that it is called as expected.
Asserts the specified local function that it is called as expected.
void Assert(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Target mock
methodNamestringName of the where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Method arguments
Asserts the specified local function that it is called as expected.
void Assert(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Target mock
methodNamestringName of the where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Method arguments
Asserts the specified local function that it is called as expected.
void Assert(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Occurs occurs, params object[] args)
Target mock
methodNamestringName of the where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
occursOccursSpecifies the number of times a call should occur.
argsobject[]Method arguments
Asserts the specified local function that it is called as expected.
void Assert(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Occurs occurs, Type[] methodGenericTypes, params object[] args)
Target mock
methodNamestringName of the where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
occursOccursSpecifies the number of times a call should occur.
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Method arguments
Asserts the specified local function that it is called as expected.
void Assert(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Occurs occurs, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Target mock
methodNamestringName of the where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
occursOccursSpecifies the number of times a call should occur.
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Method arguments
Asserts the specified local function that it is called as expected.
void Assert(object target, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)
Target mock
methodNamestringName of the where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Method arguments
Asserts the specified local function that it is called as expected.
void Assert(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Target mock
methodNamestringName of the where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Method arguments
Asserts the specified local function that it is called as expected.
void Assert(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Target mock
methodNamestringName of the where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Method arguments
Setups a non-public method for mocking.
object Call(object target, MethodInfo method, string localFunctionName, params object[] args)
Target instance
methodMethodInfoMethod to setup taken from reflection.
localFunctionNamestringName of the nested local function
argsobject[]Method arguments
Returns:Reference to setup actions calls
Calls the specified local function by name.
object Call(object target, string methodName, string localFunctionName, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:The value returned by the specified local function.
Calls the specified local function by name.
object Call(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Local function arguments
Returns:The value returned by the specified local function.
Calls the specified local function by name.
object Call(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Local function arguments
Returns:The value returned by the specified local function.
Calls the specified local function by name.
object Call(object target, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:The value returned by the specified local function.
Calls the specified local function by name.
object Call(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Local function arguments
Returns:The value returned by the specified local function.
Calls the specified local function by name.
object Call(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Local function arguments
Returns:The value returned by the specified local function.
Setups a non-public method for mocking.
T Call<T>(object target, MethodInfo method, string localFunctionName, params object[] args)
Target instance
methodMethodInfoMethod to setup taken from reflection.
localFunctionNamestringName of the nested local function
argsobject[]Method arguments
Returns:T
Reference to setup actions calls
Calls the specified local function by name.
T Call<T>(object target, string methodName, string localFunctionName, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:T
The value returned by the specified local function.
Calls the specified local function by name.
T Call<T>(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Local function arguments
Returns:T
The value returned by the specified local function.
Calls the specified local function by name.
T Call<T>(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Local function arguments
Returns:T
The value returned by the specified local function.
Calls the specified local function by name.
T Call<T>(object target, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
argsobject[]Local function arguments
Returns:T
The value returned by the specified local function.
Calls the specified local function by name.
T Call<T>(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
argsobject[]Local function arguments
Returns:T
The value returned by the specified local function.
Calls the specified local function by name.
T Call<T>(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Target instance
methodNamestringName of the method where the local function is nested
methodParamTypesType[]Types of the parameters for the method where the local function is nested
localFunctionNamestringName of the nested local function
methodGenericTypesType[]Generic types of the method specified by methodName
localFunctionGenericTypesType[]Generic types of the local function specified by localFunctionName
argsobject[]Local function arguments
Returns:T
The value returned by the specified local function.