Automatically mock constructors as well, i.e. constructor code will NOT be called
Namespace: TypeMock
Assembly: TypeMock (in TypeMock.dll) Version: 9.3.6.0 (9.3.6.0)
Syntax
Parameters
- type
- Type: SystemType
The Type needed to be mocked
Return Value
Type: MockNew Mock Controller to register expectations
Exceptions
Exception | Condition |
---|---|
TypeMockException | Will be throw if an Interface or Abstract Class is being Mocked, and if a type is being Mocked twice |
See Also