public MatchedInvocations(MatchedInvocations previousMatch, NumberOfInvocationsConstraint numberOfInvocationsConstraint, InvocationMatcher invocationMatcher, IInvocation[] matchingInvocations) { this.previousMatch = previousMatch; this.numberOfInvocationsConstraint = numberOfInvocationsConstraint; this.invocationMatcher = invocationMatcher; this.matchingInvocations = matchingInvocations; }
static List <MatchedInvocations> GetAllPreviousMatchesInOrder(MatchedInvocations match) { var allMatches = new List <MatchedInvocations>(); do { allMatches.Add(match); match = match.previousMatch; }while (match != null); allMatches.Reverse(); return(allMatches); }
public AssertInvocationFor(MatchedInvocations previousMatch, NumberOfInvocationsConstraint numberOfInvocationsConstraint) { this.previousMatch = previousMatch; this.numberOfInvocationsConstraint = numberOfInvocationsConstraint; }
public AssertInvocations(MatchedInvocations previousMatch) { this.previousMatch = previousMatch; }