MockManagerMockAll Method (Type)

Typemock Isolator Developer Guide
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

public static Mock MockAll(
	Type type
)

Parameters

type
Type: SystemType
The Type needed to be mocked

Return Value

Type: Mock
New Mock Controller to register expectations
Exceptions

ExceptionCondition
TypeMockExceptionWill be throw if an Interface or Abstract Class is being Mocked, and if a type is being Mocked twice
See Also

Reference