InterfaceIFunctionExpectation
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
Arrange(Type, MethodInfo, string, params object[])
Arranges a local function inside static method for mocking.
Declaration
ActionExpectation Arrange(Type type, MethodInfo method, string localFunctionName, params object[] args)
Parameters
type
The type with static method containing local function
method
Metadata of the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange(Type, string, Type[], string, Type[], Type[], params object[])
Arranges a local function inside static method for mocking.
Declaration
ActionExpectation Arrange(Type type, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
type
The type with static method containing local function
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange(Type, string, Type[], string, Type[], params object[])
Arranges a local function inside static method for mocking.
Declaration
ActionExpectation Arrange(Type type, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Parameters
type
The type with static method containing local function
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange(Type, string, Type[], string, params object[])
Arranges a local function inside static method for mocking.
Declaration
ActionExpectation Arrange(Type type, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)
Parameters
type
The type with static method containing local function
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange(Type, string, string, Type[], Type[], params object[])
Arranges a local function inside static method for mocking.
Declaration
ActionExpectation Arrange(Type type, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
type
The type with static method containing local function
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Local function arguments
Returns
Arrange(Type, string, string, Type[], params object[])
Arranges a local function inside static method for mocking.
Declaration
ActionExpectation Arrange(Type type, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Parameters
type
The type with static method containing local function
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Local function arguments
Returns
Arrange(Type, string, string, params object[])
Arranges a local function inside static method for mocking.
Declaration
ActionExpectation Arrange(Type type, string methodName, string localFunctionName, params object[] args)
Parameters
type
The type with static method containing local function
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange(object, MethodInfo, string, params object[])
Arranges a local function for mocking.
Declaration
ActionExpectation Arrange(object target, MethodInfo method, string localFunctionName, params object[] args)
Parameters
target
Target instance
method
Metadata for the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange(object, string, Type[], string, Type[], Type[], params object[])
Arranges a local function for mocking.
Declaration
ActionExpectation Arrange(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange(object, string, Type[], string, Type[], params object[])
Arranges a local function for mocking.
Declaration
ActionExpectation Arrange(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange(object, string, Type[], string, params object[])
Arranges a local function for mocking.
Declaration
ActionExpectation Arrange(object target, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange(object, string, string, Type[], Type[], params object[])
Arranges a local function for mocking.
Declaration
ActionExpectation Arrange(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange(object, string, string, Type[], params object[])
Arranges a local function for mocking.
Declaration
ActionExpectation Arrange(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange(object, string, string, params object[])
Arranges a local function for mocking.
Declaration
ActionExpectation Arrange(object target, string methodName, string localFunctionName, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange<T, TReturn>(MethodInfo, string, params object[])
Arranges a local function inside static method for mocking.
Declaration
FuncExpectation<TReturn> Arrange<T, TReturn>(MethodInfo method, string localFunctionName, params object[] args)
Parameters
method
Metadata of the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<T, TReturn>(string, Type[], string, Type[], Type[], params object[])
Arranges a local function inside static method for mocking.
Declaration
FuncExpectation<TReturn> Arrange<T, TReturn>(string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<T, TReturn>(string, Type[], string, Type[], params object[])
Arranges a local function inside static method for mocking.
Declaration
FuncExpectation<TReturn> Arrange<T, TReturn>(string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Parameters
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<T, TReturn>(string, Type[], string, params object[])
Arranges a local function inside static method for mocking.
Declaration
FuncExpectation<TReturn> Arrange<T, TReturn>(string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)
Parameters
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<T, TReturn>(string, string, Type[], Type[], params object[])
Arranges a local function inside static method for mocking.
Declaration
FuncExpectation<TReturn> Arrange<T, TReturn>(string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<T, TReturn>(string, string, Type[], params object[])
Arranges a local function inside static method for mocking.
Declaration
FuncExpectation<TReturn> Arrange<T, TReturn>(string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Parameters
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<T, TReturn>(string, string, params object[])
Arranges a local function inside static method for mocking.
Declaration
FuncExpectation<TReturn> Arrange<T, TReturn>(string methodName, string localFunctionName, params object[] args)
Parameters
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<T>(MethodInfo, string, params object[])
Arranges a local function inside static method for mocking.
Declaration
ActionExpectation Arrange<T>(MethodInfo method, string localFunctionName, params object[] args)
Parameters
method
Metadata of the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange<T>(string, Type[], string, Type[], Type[], params object[])
Arranges a local function inside static method for mocking.
Declaration
ActionExpectation Arrange<T>(string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange<T>(string, Type[], string, Type[], params object[])
Arranges a local function inside static method for mocking.
Declaration
ActionExpectation Arrange<T>(string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Parameters
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange<T>(string, Type[], string, params object[])
Arranges a local function inside static method for mocking.
Declaration
ActionExpectation Arrange<T>(string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)
Parameters
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange<T>(string, string, Type[], Type[], params object[])
Arranges a local function inside static method for mocking.
Declaration
ActionExpectation Arrange<T>(string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange<T>(string, string, Type[], params object[])
Arranges a local function inside static method for mocking.
Declaration
ActionExpectation Arrange<T>(string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Parameters
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange<T>(string, string, params object[])
Arranges a local function inside static method for mocking.
Declaration
ActionExpectation Arrange<T>(string methodName, string localFunctionName, params object[] args)
Parameters
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
Reference to setup actions calls
Arrange<TReturn>(Type, MethodInfo, string, params object[])
Arranges a local function inside static method for mocking.
Declaration
FuncExpectation<TReturn> Arrange<TReturn>(Type type, MethodInfo method, string localFunctionName, params object[] args)
Parameters
type
The type with static method containing local function
method
Metadata of the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<TReturn>(Type, string, Type[], string, Type[], Type[], params object[])
Arranges a local function inside static method for mocking.
Declaration
FuncExpectation<TReturn> Arrange<TReturn>(Type type, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
type
The type with static method containing local function
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<TReturn>(Type, string, Type[], string, Type[], params object[])
Arranges a local function inside static method for mocking.
Declaration
FuncExpectation<TReturn> Arrange<TReturn>(Type type, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Parameters
type
The type with static method containing local function
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<TReturn>(Type, string, Type[], string, params object[])
Arranges a local function inside static method for mocking.
Declaration
FuncExpectation<TReturn> Arrange<TReturn>(Type type, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)
Parameters
type
The type with static method containing local function
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<TReturn>(Type, string, string, Type[], Type[], params object[])
Arranges a local function inside static method for mocking.
Declaration
FuncExpectation<TReturn> Arrange<TReturn>(Type type, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
type
The type with static method containing local function
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<TReturn>(Type, string, string, Type[], params object[])
Arranges a local function inside static method for mocking.
Declaration
FuncExpectation<TReturn> Arrange<TReturn>(Type type, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Parameters
type
The type with static method containing local function
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<TReturn>(Type, string, string, params object[])
Arranges a local function inside static method for mocking.
Declaration
FuncExpectation<TReturn> Arrange<TReturn>(Type type, string methodName, string localFunctionName, params object[] args)
Parameters
type
The type with static method containing local function
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<TReturn>(object, MethodInfo, string, params object[])
Arranges a local function for mocking.
Declaration
FuncExpectation<TReturn> Arrange<TReturn>(object target, MethodInfo method, string localFunctionName, params object[] args)
Parameters
target
Target instance
method
Metadata for the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<TReturn>(object, string, Type[], string, Type[], Type[], params object[])
Arranges a local function for mocking.
Declaration
FuncExpectation<TReturn> Arrange<TReturn>(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<TReturn>(object, string, Type[], string, Type[], params object[])
Arranges a local function for mocking.
Declaration
FuncExpectation<TReturn> Arrange<TReturn>(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<TReturn>(object, string, Type[], string, params object[])
Arranges a local function for mocking.
Declaration
FuncExpectation<TReturn> Arrange<TReturn>(object target, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<TReturn>(object, string, string, Type[], Type[], params object[])
Arranges a local function for mocking.
Declaration
FuncExpectation<TReturn> Arrange<TReturn>(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<TReturn>(object, string, string, Type[], params object[])
Arranges a local function for mocking.
Declaration
FuncExpectation<TReturn> Arrange<TReturn>(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Arrange<TReturn>(object, string, string, params object[])
Arranges a local function for mocking.
Declaration
FuncExpectation<TReturn> Arrange<TReturn>(object target, string methodName, string localFunctionName, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
FuncExpectation<TReturn>
Reference to setup actions calls
Assert(object, MethodInfo, string, Occurs, params object[])
Asserts the specified local function that it is called as expected.
Declaration
void Assert(object target, MethodInfo method, string localFunctionName, Occurs occurs, params object[] args)
Parameters
target
Target mock
method
Metadata for the method where the local function is nested
localFunctionName
Name of the nested local function
occurs
Specifies the number of times a call should occur.
args
object[]
Method arguments
Assert(object, MethodInfo, string, params object[])
Asserts the specified local function that it is called as expected.
Declaration
void Assert(object target, MethodInfo method, string localFunctionName, params object[] args)
Parameters
target
Target mock
method
Metadata for the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Method arguments
Assert(object, string, Type[], string, Occurs, Type[], Type[], params object[])
Asserts the specified local function that it is called as expected.
Declaration
void Assert(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Occurs occurs, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
target
Target mock
methodName
Name of the where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
occurs
Specifies the number of times a call should occur.
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Method arguments
Assert(object, string, Type[], string, Occurs, Type[], params object[])
Asserts the specified local function that it is called as expected.
Declaration
void Assert(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Occurs occurs, Type[] methodGenericTypes, params object[] args)
Parameters
target
Target mock
methodName
Name of the where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
occurs
Specifies the number of times a call should occur.
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Method arguments
Assert(object, string, Type[], string, Occurs, params object[])
Asserts the specified local function that it is called as expected.
Declaration
void Assert(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Occurs occurs, params object[] args)
Parameters
target
Target mock
methodName
Name of the where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
occurs
Specifies the number of times a call should occur.
args
object[]
Method arguments
Assert(object, string, Type[], string, Type[], Type[], params object[])
Asserts the specified local function that it is called as expected.
Declaration
void Assert(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
target
Target mock
methodName
Name of the where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Method arguments
Assert(object, string, Type[], string, Type[], params object[])
Asserts the specified local function that it is called as expected.
Declaration
void Assert(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Parameters
target
Target mock
methodName
Name of the where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Method arguments
Assert(object, string, Type[], string, params object[])
Asserts the specified local function that it is called as expected.
Declaration
void Assert(object target, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)
Parameters
target
Target mock
methodName
Name of the where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Method arguments
Assert(object, string, string, Occurs, Type[], Type[], params object[])
Asserts the specified local function that it is called as expected.
Declaration
void Assert(object target, string methodName, string localFunctionName, Occurs occurs, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
target
Target mock
methodName
Name of the where the local function is nested
localFunctionName
Name of the nested local function
occurs
Specifies the number of times a call should occur.
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Method arguments
Assert(object, string, string, Occurs, Type[], params object[])
Asserts the specified local function that it is called as expected.
Declaration
void Assert(object target, string methodName, string localFunctionName, Occurs occurs, Type[] methodGenericTypes, params object[] args)
Parameters
target
Target mock
methodName
Name of the where the local function is nested
localFunctionName
Name of the nested local function
occurs
Specifies the number of times a call should occur.
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Method arguments
Assert(object, string, string, Occurs, params object[])
Asserts the specified local function that it is called as expected.
Declaration
void Assert(object target, string methodName, string localFunctionName, Occurs occurs, params object[] args)
Parameters
target
Target mock
methodName
Name of the where the local function is nested
localFunctionName
Name of the nested local function
occurs
Specifies the number of times a call should occur.
args
object[]
Method arguments
Assert(object, string, string, Type[], Type[], params object[])
Asserts the specified local function that it is called as expected.
Declaration
void Assert(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
target
Target mock
methodName
Name of the where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Method arguments
Assert(object, string, string, Type[], params object[])
Asserts the specified local function that it is called as expected.
Declaration
void Assert(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Parameters
target
Target mock
methodName
Name of the where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Method arguments
Assert(object, string, string, params object[])
Asserts the specified local function that it is called as expected.
Declaration
void Assert(object target, string methodName, string localFunctionName, params object[] args)
Parameters
target
Target mock
methodName
Name of the where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Method arguments
Call(object, MethodInfo, string, params object[])
Setups a non-public method for mocking.
Declaration
object Call(object target, MethodInfo method, string localFunctionName, params object[] args)
Parameters
target
Target instance
method
Method to setup taken from reflection.
localFunctionName
Name of the nested local function
args
object[]
Method arguments
Returns
Reference to setup actions calls
Call(object, string, Type[], string, Type[], Type[], params object[])
Calls the specified local function by name.
Declaration
object Call(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Local function arguments
Returns
The value returned by the specified local function.
Call(object, string, Type[], string, Type[], params object[])
Calls the specified local function by name.
Declaration
object Call(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Local function arguments
Returns
The value returned by the specified local function.
Call(object, string, Type[], string, params object[])
Calls the specified local function by name.
Declaration
object Call(object target, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
The value returned by the specified local function.
Call(object, string, string, Type[], Type[], params object[])
Calls the specified local function by name.
Declaration
object Call(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Local function arguments
Returns
The value returned by the specified local function.
Call(object, string, string, Type[], params object[])
Calls the specified local function by name.
Declaration
object Call(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Local function arguments
Returns
The value returned by the specified local function.
Call(object, string, string, params object[])
Calls the specified local function by name.
Declaration
object Call(object target, string methodName, string localFunctionName, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
The value returned by the specified local function.
Call<T>(object, MethodInfo, string, params object[])
Setups a non-public method for mocking.
Declaration
T Call<T>(object target, MethodInfo method, string localFunctionName, params object[] args)
Parameters
target
Target instance
method
Method to setup taken from reflection.
localFunctionName
Name of the nested local function
args
object[]
Method arguments
Returns
T
Reference to setup actions calls
Call<T>(object, string, Type[], string, Type[], Type[], params object[])
Calls the specified local function by name.
Declaration
T Call<T>(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Local function arguments
Returns
T
The value returned by the specified local function.
Call<T>(object, string, Type[], string, Type[], params object[])
Calls the specified local function by name.
Declaration
T Call<T>(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Local function arguments
Returns
T
The value returned by the specified local function.
Call<T>(object, string, Type[], string, params object[])
Calls the specified local function by name.
Declaration
T Call<T>(object target, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
methodParamTypes
Type[]
Types of the parameters for the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
T
The value returned by the specified local function.
Call<T>(object, string, string, Type[], Type[], params object[])
Calls the specified local function by name.
Declaration
T Call<T>(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
localFunctionGenericTypes
Type[]
Generic types of the local function specified by localFunctionName
args
object[]
Local function arguments
Returns
T
The value returned by the specified local function.
Call<T>(object, string, string, Type[], params object[])
Calls the specified local function by name.
Declaration
T Call<T>(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
methodGenericTypes
Type[]
Generic types of the method specified by methodName
args
object[]
Local function arguments
Returns
T
The value returned by the specified local function.
Call<T>(object, string, string, params object[])
Calls the specified local function by name.
Declaration
T Call<T>(object target, string methodName, string localFunctionName, params object[] args)
Parameters
target
Target instance
methodName
Name of the method where the local function is nested
localFunctionName
Name of the nested local function
args
object[]
Local function arguments
Returns
T
The value returned by the specified local function.