Interface
IFunctionExpectation

Interface used to arrange and call local functions.

Definition

Namespace:Telerik.JustMock.Expectations.Abstraction.Local.Function

Assembly:Telerik.JustMock.dll

Syntax:

cs-api-definition
public interface IFunctionExpectation

Methods

Arrange(Type, MethodInfo, string, params object[])

Arranges a local function inside static method for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange(Type type, MethodInfo method, string localFunctionName, params object[] args)

Parameters

type

Type

The type with static method containing local function

method

MethodInfo

Metadata of the method where the local function is nested

localFunctionName

string

Name of the nested local function

args

object[]

Local function arguments

Returns

ActionExpectation

Reference to setup actions calls

Arrange(Type, string, Type[], string, Type[], Type[], params object[])

Arranges a local function inside static method for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange(Type type, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

type

Type

The type with static method containing local function

methodName

string

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

string

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

ActionExpectation

Reference to setup actions calls

Arrange(Type, string, Type[], string, Type[], params object[])

Arranges a local function inside static method for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange(Type type, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)

Parameters

type

Type

The type with static method containing local function

methodName

string

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

string

Name of the nested local function

methodGenericTypes

Type[]

Generic types of the method specified by methodName

args

object[]

Local function arguments

Returns

ActionExpectation

Reference to setup actions calls

Arrange(Type, string, Type[], string, params object[])

Arranges a local function inside static method for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange(Type type, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)

Parameters

type

Type

The type with static method containing local function

methodName

string

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

string

Name of the nested local function

args

object[]

Local function arguments

Returns

ActionExpectation

Reference to setup actions calls

Arrange(Type, string, string, Type[], Type[], params object[])

Arranges a local function inside static method for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange(Type type, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

type

Type

The type with static method containing local function

methodName

string

Name of the method where the local function is nested

localFunctionName

string

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

ActionExpectation

Arrange(Type, string, string, Type[], params object[])

Arranges a local function inside static method for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange(Type type, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)

Parameters

type

Type

The type with static method containing local function

methodName

string

Name of the method where the local function is nested

localFunctionName

string

Name of the nested local function

methodGenericTypes

Type[]

Generic types of the method specified by methodName

args

object[]

Local function arguments

Returns

ActionExpectation

Arrange(Type, string, string, params object[])

Arranges a local function inside static method for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange(Type type, string methodName, string localFunctionName, params object[] args)

Parameters

type

Type

The type with static method containing local function

methodName

string

Name of the method where the local function is nested

localFunctionName

string

Name of the nested local function

args

object[]

Local function arguments

Returns

ActionExpectation

Reference to setup actions calls

Arrange(object, MethodInfo, string, params object[])

Arranges a local function for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange(object target, MethodInfo method, string localFunctionName, params object[] args)

Parameters

target

object

Target instance

method

MethodInfo

Metadata for the method where the local function is nested

localFunctionName

string

Name of the nested local function

args

object[]

Local function arguments

Returns

ActionExpectation

Reference to setup actions calls

Arrange(object, string, Type[], string, Type[], Type[], params object[])

Arranges a local function for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

target

object

Target instance

methodName

string

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

string

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

ActionExpectation

Reference to setup actions calls

Arrange(object, string, Type[], string, Type[], params object[])

Arranges a local function for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)

Parameters

target

object

Target instance

methodName

string

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

string

Name of the nested local function

methodGenericTypes

Type[]

Generic types of the method specified by methodName

args

object[]

Local function arguments

Returns

ActionExpectation

Reference to setup actions calls

Arrange(object, string, Type[], string, params object[])

Arranges a local function for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange(object target, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)

Parameters

target

object

Target instance

methodName

string

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

string

Name of the nested local function

args

object[]

Local function arguments

Returns

ActionExpectation

Reference to setup actions calls

Arrange(object, string, string, Type[], Type[], params object[])

Arranges a local function for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

target

object

Target instance

methodName

string

Name of the method where the local function is nested

localFunctionName

string

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

ActionExpectation

Reference to setup actions calls

Arrange(object, string, string, Type[], params object[])

Arranges a local function for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)

Parameters

target

object

Target instance

methodName

string

Name of the method where the local function is nested

localFunctionName

string

Name of the nested local function

methodGenericTypes

Type[]

Generic types of the method specified by methodName

args

object[]

Local function arguments

Returns

ActionExpectation

Reference to setup actions calls

Arrange(object, string, string, params object[])

Arranges a local function for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange(object target, string methodName, string localFunctionName, params object[] args)

Parameters

target

object

Target instance

methodName

string

Name of the method where the local function is nested

localFunctionName

string

Name of the nested local function

args

object[]

Local function arguments

Returns

ActionExpectation

Reference to setup actions calls

Arrange<T, TReturn>(MethodInfo, string, params object[])

Arranges a local function inside static method for mocking.

Declaration

cs-api-definition
FuncExpectation<TReturn> Arrange<T, TReturn>(MethodInfo method, string localFunctionName, params object[] args)

Parameters

method

MethodInfo

Metadata of the method where the local function is nested

localFunctionName

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<T, TReturn>(string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

methodName

string

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

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<T, TReturn>(string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)

Parameters

methodName

string

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

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<T, TReturn>(string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)

Parameters

methodName

string

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

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<T, TReturn>(string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

methodName

string

Name of the method where the local function is nested

localFunctionName

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<T, TReturn>(string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)

Parameters

methodName

string

Name of the method where the local function is nested

localFunctionName

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<T, TReturn>(string methodName, string localFunctionName, params object[] args)

Parameters

methodName

string

Name of the method where the local function is nested

localFunctionName

string

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

cs-api-definition
ActionExpectation Arrange<T>(MethodInfo method, string localFunctionName, params object[] args)

Parameters

method

MethodInfo

Metadata of the method where the local function is nested

localFunctionName

string

Name of the nested local function

args

object[]

Local function arguments

Returns

ActionExpectation

Reference to setup actions calls

Arrange<T>(string, Type[], string, Type[], Type[], params object[])

Arranges a local function inside static method for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange<T>(string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

methodName

string

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

string

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

ActionExpectation

Reference to setup actions calls

Arrange<T>(string, Type[], string, Type[], params object[])

Arranges a local function inside static method for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange<T>(string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)

Parameters

methodName

string

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

string

Name of the nested local function

methodGenericTypes

Type[]

Generic types of the method specified by methodName

args

object[]

Local function arguments

Returns

ActionExpectation

Reference to setup actions calls

Arrange<T>(string, Type[], string, params object[])

Arranges a local function inside static method for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange<T>(string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)

Parameters

methodName

string

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

string

Name of the nested local function

args

object[]

Local function arguments

Returns

ActionExpectation

Reference to setup actions calls

Arrange<T>(string, string, Type[], Type[], params object[])

Arranges a local function inside static method for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange<T>(string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

methodName

string

Name of the method where the local function is nested

localFunctionName

string

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

ActionExpectation

Reference to setup actions calls

Arrange<T>(string, string, Type[], params object[])

Arranges a local function inside static method for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange<T>(string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)

Parameters

methodName

string

Name of the method where the local function is nested

localFunctionName

string

Name of the nested local function

methodGenericTypes

Type[]

Generic types of the method specified by methodName

args

object[]

Local function arguments

Returns

ActionExpectation

Reference to setup actions calls

Arrange<T>(string, string, params object[])

Arranges a local function inside static method for mocking.

Declaration

cs-api-definition
ActionExpectation Arrange<T>(string methodName, string localFunctionName, params object[] args)

Parameters

methodName

string

Name of the method where the local function is nested

localFunctionName

string

Name of the nested local function

args

object[]

Local function arguments

Returns

ActionExpectation

Reference to setup actions calls

Arrange<TReturn>(Type, MethodInfo, string, params object[])

Arranges a local function inside static method for mocking.

Declaration

cs-api-definition
FuncExpectation<TReturn> Arrange<TReturn>(Type type, MethodInfo method, string localFunctionName, params object[] args)

Parameters

type

Type

The type with static method containing local function

method

MethodInfo

Metadata of the method where the local function is nested

localFunctionName

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<TReturn>(Type type, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

type

Type

The type with static method containing local function

methodName

string

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

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<TReturn>(Type type, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)

Parameters

type

Type

The type with static method containing local function

methodName

string

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

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<TReturn>(Type type, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)

Parameters

type

Type

The type with static method containing local function

methodName

string

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

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<TReturn>(Type type, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

type

Type

The type with static method containing local function

methodName

string

Name of the method where the local function is nested

localFunctionName

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<TReturn>(Type type, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)

Parameters

type

Type

The type with static method containing local function

methodName

string

Name of the method where the local function is nested

localFunctionName

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<TReturn>(Type type, string methodName, string localFunctionName, params object[] args)

Parameters

type

Type

The type with static method containing local function

methodName

string

Name of the method where the local function is nested

localFunctionName

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<TReturn>(object target, MethodInfo method, string localFunctionName, params object[] args)

Parameters

target

object

Target instance

method

MethodInfo

Metadata for the method where the local function is nested

localFunctionName

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<TReturn>(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

target

object

Target instance

methodName

string

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

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<TReturn>(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)

Parameters

target

object

Target instance

methodName

string

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

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<TReturn>(object target, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)

Parameters

target

object

Target instance

methodName

string

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

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<TReturn>(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

target

object

Target instance

methodName

string

Name of the method where the local function is nested

localFunctionName

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<TReturn>(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)

Parameters

target

object

Target instance

methodName

string

Name of the method where the local function is nested

localFunctionName

string

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

cs-api-definition
FuncExpectation<TReturn> Arrange<TReturn>(object target, string methodName, string localFunctionName, params object[] args)

Parameters

target

object

Target instance

methodName

string

Name of the method where the local function is nested

localFunctionName

string

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

cs-api-definition
void Assert(object target, MethodInfo method, string localFunctionName, Occurs occurs, params object[] args)

Parameters

target

object

Target mock

method

MethodInfo

Metadata for the method where the local function is nested

localFunctionName

string

Name of the nested local function

occurs

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

cs-api-definition
void Assert(object target, MethodInfo method, string localFunctionName, params object[] args)

Parameters

target

object

Target mock

method

MethodInfo

Metadata for the method where the local function is nested

localFunctionName

string

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

cs-api-definition
void Assert(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Occurs occurs, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

target

object

Target mock

methodName

string

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

string

Name of the nested local function

occurs

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

cs-api-definition
void Assert(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Occurs occurs, Type[] methodGenericTypes, params object[] args)

Parameters

target

object

Target mock

methodName

string

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

string

Name of the nested local function

occurs

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

cs-api-definition
void Assert(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Occurs occurs, params object[] args)

Parameters

target

object

Target mock

methodName

string

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

string

Name of the nested local function

occurs

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

cs-api-definition
void Assert(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

target

object

Target mock

methodName

string

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

string

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

cs-api-definition
void Assert(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)

Parameters

target

object

Target mock

methodName

string

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

string

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

cs-api-definition
void Assert(object target, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)

Parameters

target

object

Target mock

methodName

string

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

string

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

cs-api-definition
void Assert(object target, string methodName, string localFunctionName, Occurs occurs, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

target

object

Target mock

methodName

string

Name of the where the local function is nested

localFunctionName

string

Name of the nested local function

occurs

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

cs-api-definition
void Assert(object target, string methodName, string localFunctionName, Occurs occurs, Type[] methodGenericTypes, params object[] args)

Parameters

target

object

Target mock

methodName

string

Name of the where the local function is nested

localFunctionName

string

Name of the nested local function

occurs

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

cs-api-definition
void Assert(object target, string methodName, string localFunctionName, Occurs occurs, params object[] args)

Parameters

target

object

Target mock

methodName

string

Name of the where the local function is nested

localFunctionName

string

Name of the nested local function

occurs

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

cs-api-definition
void Assert(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

target

object

Target mock

methodName

string

Name of the where the local function is nested

localFunctionName

string

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

cs-api-definition
void Assert(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)

Parameters

target

object

Target mock

methodName

string

Name of the where the local function is nested

localFunctionName

string

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

cs-api-definition
void Assert(object target, string methodName, string localFunctionName, params object[] args)

Parameters

target

object

Target mock

methodName

string

Name of the where the local function is nested

localFunctionName

string

Name of the nested local function

args

object[]

Method arguments

Call(object, MethodInfo, string, params object[])

Setups a non-public method for mocking.

Declaration

cs-api-definition
object Call(object target, MethodInfo method, string localFunctionName, params object[] args)

Parameters

target

object

Target instance

method

MethodInfo

Method to setup taken from reflection.

localFunctionName

string

Name of the nested local function

args

object[]

Method arguments

Returns

object

Reference to setup actions calls

Call(object, string, Type[], string, Type[], Type[], params object[])

Calls the specified local function by name.

Declaration

cs-api-definition
object Call(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

target

object

Target instance

methodName

string

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

string

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

object

The value returned by the specified local function.

Call(object, string, Type[], string, Type[], params object[])

Calls the specified local function by name.

Declaration

cs-api-definition
object Call(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)

Parameters

target

object

Target instance

methodName

string

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

string

Name of the nested local function

methodGenericTypes

Type[]

Generic types of the method specified by methodName

args

object[]

Local function arguments

Returns

object

The value returned by the specified local function.

Call(object, string, Type[], string, params object[])

Calls the specified local function by name.

Declaration

cs-api-definition
object Call(object target, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)

Parameters

target

object

Target instance

methodName

string

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

string

Name of the nested local function

args

object[]

Local function arguments

Returns

object

The value returned by the specified local function.

Call(object, string, string, Type[], Type[], params object[])

Calls the specified local function by name.

Declaration

cs-api-definition
object Call(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

target

object

Target instance

methodName

string

Name of the method where the local function is nested

localFunctionName

string

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

object

The value returned by the specified local function.

Call(object, string, string, Type[], params object[])

Calls the specified local function by name.

Declaration

cs-api-definition
object Call(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)

Parameters

target

object

Target instance

methodName

string

Name of the method where the local function is nested

localFunctionName

string

Name of the nested local function

methodGenericTypes

Type[]

Generic types of the method specified by methodName

args

object[]

Local function arguments

Returns

object

The value returned by the specified local function.

Call(object, string, string, params object[])

Calls the specified local function by name.

Declaration

cs-api-definition
object Call(object target, string methodName, string localFunctionName, params object[] args)

Parameters

target

object

Target instance

methodName

string

Name of the method where the local function is nested

localFunctionName

string

Name of the nested local function

args

object[]

Local function arguments

Returns

object

The value returned by the specified local function.

Call<T>(object, MethodInfo, string, params object[])

Setups a non-public method for mocking.

Declaration

cs-api-definition
T Call<T>(object target, MethodInfo method, string localFunctionName, params object[] args)

Parameters

target

object

Target instance

method

MethodInfo

Method to setup taken from reflection.

localFunctionName

string

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

cs-api-definition
T Call<T>(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

target

object

Target instance

methodName

string

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

string

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

cs-api-definition
T Call<T>(object target, string methodName, Type[] methodParamTypes, string localFunctionName, Type[] methodGenericTypes, params object[] args)

Parameters

target

object

Target instance

methodName

string

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

string

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

cs-api-definition
T Call<T>(object target, string methodName, Type[] methodParamTypes, string localFunctionName, params object[] args)

Parameters

target

object

Target instance

methodName

string

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

string

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

cs-api-definition
T Call<T>(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, Type[] localFunctionGenericTypes, params object[] args)

Parameters

target

object

Target instance

methodName

string

Name of the method where the local function is nested

localFunctionName

string

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

cs-api-definition
T Call<T>(object target, string methodName, string localFunctionName, Type[] methodGenericTypes, params object[] args)

Parameters

target

object

Target instance

methodName

string

Name of the method where the local function is nested

localFunctionName

string

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

cs-api-definition
T Call<T>(object target, string methodName, string localFunctionName, params object[] args)

Parameters

target

object

Target instance

methodName

string

Name of the method where the local function is nested

localFunctionName

string

Name of the nested local function

args

object[]

Local function arguments

Returns

T

The value returned by the specified local function.

In this article
DefinitionMethodsArrange(Type, MethodInfo, string, params object[])Arrange(Type, string, Type[], string, Type[], Type[], params object[])Arrange(Type, string, Type[], string, Type[], params object[])Arrange(Type, string, Type[], string, params object[])Arrange(Type, string, string, Type[], Type[], params object[])Arrange(Type, string, string, Type[], params object[])Arrange(Type, string, string, params object[])Arrange(object, MethodInfo, string, params object[])Arrange(object, string, Type[], string, Type[], Type[], params object[])Arrange(object, string, Type[], string, Type[], params object[])Arrange(object, string, Type[], string, params object[])Arrange(object, string, string, Type[], Type[], params object[])Arrange(object, string, string, Type[], params object[])Arrange(object, string, string, params object[])Arrange<T, TReturn>(MethodInfo, string, params object[])Arrange<T, TReturn>(string, Type[], string, Type[], Type[], params object[])Arrange<T, TReturn>(string, Type[], string, Type[], params object[])Arrange<T, TReturn>(string, Type[], string, params object[])Arrange<T, TReturn>(string, string, Type[], Type[], params object[])Arrange<T, TReturn>(string, string, Type[], params object[])Arrange<T, TReturn>(string, string, params object[])Arrange<T>(MethodInfo, string, params object[])Arrange<T>(string, Type[], string, Type[], Type[], params object[])Arrange<T>(string, Type[], string, Type[], params object[])Arrange<T>(string, Type[], string, params object[])Arrange<T>(string, string, Type[], Type[], params object[])Arrange<T>(string, string, Type[], params object[])Arrange<T>(string, string, params object[])Arrange<TReturn>(Type, MethodInfo, string, params object[])Arrange<TReturn>(Type, string, Type[], string, Type[], Type[], params object[])Arrange<TReturn>(Type, string, Type[], string, Type[], params object[])Arrange<TReturn>(Type, string, Type[], string, params object[])Arrange<TReturn>(Type, string, string, Type[], Type[], params object[])Arrange<TReturn>(Type, string, string, Type[], params object[])Arrange<TReturn>(Type, string, string, params object[])Arrange<TReturn>(object, MethodInfo, string, params object[])Arrange<TReturn>(object, string, Type[], string, Type[], Type[], params object[])Arrange<TReturn>(object, string, Type[], string, Type[], params object[])Arrange<TReturn>(object, string, Type[], string, params object[])Arrange<TReturn>(object, string, string, Type[], Type[], params object[])Arrange<TReturn>(object, string, string, Type[], params object[])Arrange<TReturn>(object, string, string, params object[])Assert(object, MethodInfo, string, Occurs, params object[])Assert(object, MethodInfo, string, params object[])Assert(object, string, Type[], string, Occurs, Type[], Type[], params object[])Assert(object, string, Type[], string, Occurs, Type[], params object[])Assert(object, string, Type[], string, Occurs, params object[])Assert(object, string, Type[], string, Type[], Type[], params object[])Assert(object, string, Type[], string, Type[], params object[])Assert(object, string, Type[], string, params object[])Assert(object, string, string, Occurs, Type[], Type[], params object[])Assert(object, string, string, Occurs, Type[], params object[])Assert(object, string, string, Occurs, params object[])Assert(object, string, string, Type[], Type[], params object[])Assert(object, string, string, Type[], params object[])Assert(object, string, string, params object[])Call(object, MethodInfo, string, params object[])Call(object, string, Type[], string, Type[], Type[], params object[])Call(object, string, Type[], string, Type[], params object[])Call(object, string, Type[], string, params object[])Call(object, string, string, Type[], Type[], params object[])Call(object, string, string, Type[], params object[])Call(object, string, string, params object[])Call<T>(object, MethodInfo, string, params object[])Call<T>(object, string, Type[], string, Type[], Type[], params object[])Call<T>(object, string, Type[], string, Type[], params object[])Call<T>(object, string, Type[], string, params object[])Call<T>(object, string, string, Type[], Type[], params object[])Call<T>(object, string, string, Type[], params object[])Call<T>(object, string, string, params object[])
Not finding the help you need?
Contact Support