IMockControlExpectGetIndexAndThrow Method (Exception, Int32)

Typemock Isolator Developer Guide
Expect a number of gets of an Index and mock throwing an exception

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

IIndexGetParameters ExpectGetIndexAndThrow(
	Exception ex,
	int timesToRun
)

Parameters

ex
Type: SystemException
Mocked Exception
timesToRun
Type: SystemInt32
Number of expected calls

Return Value

Type: IIndexGetParameters
Can Check Property value, see IIndexGetParameters
Exceptions

ExceptionCondition
TypeMockExceptionIf index is not found
See Also

Reference