public IMethodCallHistoryAssertion ConsumeAssertion() { var tmp = _activeAssertion; _activeAssertion = null; return(tmp); }
public void Clear() { _currentMethodCall = null; _methodCallMatcherBuilder = MethodCallMatcherBuilder.Create(); _methodCallMatcher = null; _activeAssertion = null; }
internal static void RegisterAssertion(IMethodCallHistoryAssertion assertion) => _context.Value.RegisterAssertion(assertion);
internal static void RegisterAssertion(IMethodCallHistoryAssertion assertion) => Internal.ThreadLocalContext.RegisterAssertion(assertion);
public void RegisterAssertion(IMethodCallHistoryAssertion assertion) { Debug.Assert(_activeAssertion == null); _activeAssertion = assertion; }