Create a new Mock to intercept and mock calls made on the next instance of a type.
Overload List
| Name | Description | |
|---|---|---|
| MockTMockedType |
Intercept and mock calls made on the next new instance of TMockedType.
| |
| Mock(Type) |
Automatically mock constructors as well, i.e. constructor code will NOT be called
| |
| MockTMockedType(Constructor) |
Intercept and mock calls made on the next new instance of TMockedType, with constructor behavior control
| |
| Mock(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)
| |
| Mock(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)
|
See Also