Пример #1
0
 public void Clear()
 {
     _currentMethodCall        = null;
     _methodCallMatcherBuilder = MethodCallMatcherBuilder.Create();
     _methodCallMatcher        = null;
     _activeAssertion          = null;
 }
Пример #2
0
        public MethodCallMatcher SetCurrentMethodCall(ProxyMethodCall methodCall)
        {
            _currentMethodCall = methodCall;
            _methodCallMatcher = _methodCallMatcherBuilder
                                 .WithMethodCall(methodCall)
                                 .Build();

            _methodCallMatcherBuilder = MethodCallMatcherBuilder.Create();
            return(_methodCallMatcher);
        }
Пример #3
0
 internal MethodSetup FindCompatibleMethodSetup(MethodCallMatcher matcher)
 {
     return(MethodSetups
            .SingleOrDefault(x => x.IsCompatible(matcher)));
 }
Пример #4
0
 public bool IsCompatible(MethodCallMatcher matcher)
 => _methodCallMatcher.Equals(matcher);
Пример #5
0
 public MethodSetup(MethodCallMatcher methodCallMatcher)
 {
     _methodCallMatcher = methodCallMatcher;
 }