Method Reset
Reset()
reset should set the state of the failure to its default (freshly constructed) state. Reset is convenient for tests that want to create one failure object and then reuse it in multiple cases. this, combined with the fact that Failure subclasses are often anonymous classes makes reset difficult to do otherwise.
A typical example of use is Failure failure = new Failure() { ... }; ... mock.failOn(failure.reset())
Declaration
public virtual MockDirectoryWrapper.Failure Reset()
Returns
Type | Description |
---|---|
MockDirectoryWrapper.Failure |