public void AddExpectation(IExpectation expectation, bool hasHigherPrecedence) { if (expectation == null) { throw new ArgumentNullException("expectation"); } expectationScope.Add(expectation, hasHigherPrecedence); }
static void AddExpectation(IExpectationScope expectationScope, IInvocationMatcher invocationMatcher, NumberOfInvocationsConstraint numberOfInvocationsConstraint) { expectationScope.Add(new Expectation(invocationMatcher, numberOfInvocationsConstraint), false); }