Expect unlimited calls from method, and always throws exception
Namespace: TypeMock
Assembly: TypeMock (in TypeMock.dll) Version: 9.3.6.0 (9.3.6.0)
Syntax
Parameters
- method
- Type: SystemString
Method Name - ex
- Type: SystemException
Mocked exception - genericTypes
- Type: SystemType
List of generic types, to mock bounded generic methods
Return Value
Type: IParametersCan Check Parameters, see IParameters
Exceptions
Exception | Condition |
---|---|
TypeMockException | If method is not found |
Remarks
See Also