Ejemplo n.º 1
0
        public IMethodCallHistoryAssertion ConsumeAssertion()
        {
            var tmp = _activeAssertion;

            _activeAssertion = null;
            return(tmp);
        }
Ejemplo n.º 2
0
 public void Clear()
 {
     _currentMethodCall        = null;
     _methodCallMatcherBuilder = MethodCallMatcherBuilder.Create();
     _methodCallMatcher        = null;
     _activeAssertion          = null;
 }
Ejemplo n.º 3
0
 internal static void RegisterAssertion(IMethodCallHistoryAssertion assertion)
 => _context.Value.RegisterAssertion(assertion);
Ejemplo n.º 4
0
 internal static void RegisterAssertion(IMethodCallHistoryAssertion assertion)
 => Internal.ThreadLocalContext.RegisterAssertion(assertion);
Ejemplo n.º 5
0
 public void RegisterAssertion(IMethodCallHistoryAssertion assertion)
 {
     Debug.Assert(_activeAssertion == null);
     _activeAssertion = assertion;
 }