IMockControl
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
void
Clear
()
Sub
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
IMockControl Interface
Clear Overload
TypeMock Namespace