Exemplo n.º 1
0
 public MatchedInvocations(MatchedInvocations previousMatch, NumberOfInvocationsConstraint numberOfInvocationsConstraint, InvocationMatcher invocationMatcher, IInvocation[] matchingInvocations)
 {
     this.previousMatch = previousMatch;
     this.numberOfInvocationsConstraint = numberOfInvocationsConstraint;
     this.invocationMatcher             = invocationMatcher;
     this.matchingInvocations           = matchingInvocations;
 }
Exemplo n.º 2
0
        static Expectation CreateExpectation(InvocationMatcher invocationMatcher, NumberOfInvocationsConstraint numberOfInvocationsConstraint, bool hasHigherPrecedence)
        {
            var expectation = new Expectation(invocationMatcher, numberOfInvocationsConstraint);

            MockInvocationInterceptor.GetFromTarget(invocationMatcher.Target).AddExpectation(expectation, hasHigherPrecedence);

            return(expectation);
        }
Exemplo n.º 3
0
 public AssertInvocationFor(MatchedInvocations previousMatch, NumberOfInvocationsConstraint numberOfInvocationsConstraint)
 {
     this.previousMatch = previousMatch;
     this.numberOfInvocationsConstraint = numberOfInvocationsConstraint;
 }
Exemplo n.º 4
0
 static void AddExpectation(IExpectationScope expectationScope, IInvocationMatcher invocationMatcher, NumberOfInvocationsConstraint numberOfInvocationsConstraint)
 {
     expectationScope.Add(new Expectation(invocationMatcher, numberOfInvocationsConstraint), false);
 }
Exemplo n.º 5
0
 public SpecifyInvocation(NumberOfInvocationsConstraint numberOfInvocationsConstraint)
 {
     this.numberOfInvocationsConstraint = numberOfInvocationsConstraint;
 }