protected virtual void VerifySelf() { if (!this.IsMatched) { throw MockException.UnmatchedSetup(this); } }
protected virtual bool TryVerifySelf(out MockException error) { error = this.WasMatched ? null : MockException.UnmatchedSetup(this); return(error == null); }
public override MockException TryVerifyAll() { return(this.invoked ? null : MockException.UnmatchedSetup(this)); }