IMockControlExpectSetAndAlwaysThrow Method

Typemock Isolator Developer Guide
Expect unlimited set of a Property and always mock throwing an exception

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

IPropertyParameters ExpectSetAndAlwaysThrow(
	string property,
	Exception ex
)

Parameters

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

Return Value

Type: IPropertyParameters
Can Check Property value, see IPropertyParameters
Exceptions

ExceptionCondition
TypeMockExceptionIf property is not found
See Also

Reference