MockManagerMock Method

Typemock Isolator Developer Guide
Create a new Mock to intercept and mock calls made on the next instance of a type.
Overload List

  NameDescription
Public methodStatic memberMockTMockedType
Intercept and mock calls made on the next new instance of TMockedType.
Public methodStatic memberMock(Type)
Automatically mock constructors as well, i.e. constructor code will NOT be called
Public methodStatic memberMockTMockedType(Constructor)
Intercept and mock calls made on the next new instance of TMockedType, with constructor behavior control
Public methodStatic memberMock(Type, Boolean) Obsolete.
Create a new Type Mock to intercept and mock calls made on the next instance of a type, with ability to decide if Constructors should be mocked or not (default is to mock constructors)
Public methodStatic memberMock(Type, Constructor)
Create a new Type Mock to intercept and mock calls made on the next instance of a type, with ability to define the scope of mocked Constructors (default is to mock all constructors)
Top
See Also

Reference