public void Clear() { _currentMethodCall = null; _methodCallMatcherBuilder = MethodCallMatcherBuilder.Create(); _methodCallMatcher = null; _activeAssertion = null; }
public MethodCallMatcher SetCurrentMethodCall(ProxyMethodCall methodCall) { _currentMethodCall = methodCall; _methodCallMatcher = _methodCallMatcherBuilder .WithMethodCall(methodCall) .Build(); _methodCallMatcherBuilder = MethodCallMatcherBuilder.Create(); return(_methodCallMatcher); }
internal MethodSetup FindCompatibleMethodSetup(MethodCallMatcher matcher) { return(MethodSetups .SingleOrDefault(x => x.IsCompatible(matcher))); }
public bool IsCompatible(MethodCallMatcher matcher) => _methodCallMatcher.Equals(matcher);
public MethodSetup(MethodCallMatcher methodCallMatcher) { _methodCallMatcher = methodCallMatcher; }