public MatchedInvocations(MatchedInvocations previousMatch, NumberOfInvocationsConstraint numberOfInvocationsConstraint, InvocationMatcher invocationMatcher, IInvocation[] matchingInvocations) { this.previousMatch = previousMatch; this.numberOfInvocationsConstraint = numberOfInvocationsConstraint; this.invocationMatcher = invocationMatcher; this.matchingInvocations = matchingInvocations; }
static Expectation CreateExpectation(InvocationMatcher invocationMatcher, NumberOfInvocationsConstraint numberOfInvocationsConstraint, bool hasHigherPrecedence) { var expectation = new Expectation(invocationMatcher, numberOfInvocationsConstraint); MockInvocationInterceptor.GetFromTarget(invocationMatcher.Target).AddExpectation(expectation, hasHigherPrecedence); return(expectation); }
public AssertInvocationFor(MatchedInvocations previousMatch, NumberOfInvocationsConstraint numberOfInvocationsConstraint) { this.previousMatch = previousMatch; this.numberOfInvocationsConstraint = numberOfInvocationsConstraint; }
static void AddExpectation(IExpectationScope expectationScope, IInvocationMatcher invocationMatcher, NumberOfInvocationsConstraint numberOfInvocationsConstraint) { expectationScope.Add(new Expectation(invocationMatcher, numberOfInvocationsConstraint), false); }
public SpecifyInvocation(NumberOfInvocationsConstraint numberOfInvocationsConstraint) { this.numberOfInvocationsConstraint = numberOfInvocationsConstraint; }