IMockControlExpectCall Method (String, Int32, Type)

Typemock Isolator Developer Guide
Expect a number of calls from method

Namespace:  TypeMock
Assembly:  TypeMock (in TypeMock.dll) Version: 9.3.6.0 (9.3.6.0)
Syntax

IParameters ExpectCall(
	string method,
	int timesToRun,
	params Type[] genericTypes
)

Parameters

method
Type: SystemString
Method Name
timesToRun
Type: SystemInt32
Number of times to expect the call
genericTypes
Type: SystemType
List of generic types, to mock bounded generic methods

Return Value

Type: IParameters
Can Check Parameters, see IParameters
Exceptions

ExceptionCondition
TypeMockExceptionIf method not found or is not void
See Also

Reference