MockExpectGetAndThrow Method (String, Exception)

Typemock Isolator Developer Guide
Expect 1 get of a Property and mock throwing an exception

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

public void ExpectGetAndThrow(
	string property,
	Exception ex
)

Parameters

property
Type: SystemString
Property Name
ex
Type: SystemException
Mocked Exception

Implements

IMockControlExpectGetAndThrow(String, Exception)
Exceptions

ExceptionCondition
TypeMockExceptionIf property is not found
See Also

Reference