Mock
Clear Method
Typemock Isolator Developer Guide
Clear all expectations
Namespace:
TypeMock
Assembly:
TypeMock (in TypeMock.dll) Version: 9.3.6.0 (9.3.6.0)
Syntax
C#
VB
Copy
public
void
Clear
()
Public
Sub
Clear
Implements
IMockControl
Clear
Remarks
There are times when you want to clear all the expectations of the mock. For example, if you setup expectations in the [SetUp] method, but want to clear a mocked type in a specific test. You do not need to call this when using
Verify
See Also
Reference
Mock Class
Clear Overload
TypeMock Namespace