public void AddExpectation(IExpectation expectation, bool hasHigherPrecedence)
        {
            if (expectation == null)
            {
                throw new ArgumentNullException("expectation");
            }

            expectationScope.Add(expectation, hasHigherPrecedence);
        }
Exemplo n.º 2
0
 static void AddExpectation(IExpectationScope expectationScope, IInvocationMatcher invocationMatcher, NumberOfInvocationsConstraint numberOfInvocationsConstraint)
 {
     expectationScope.Add(new Expectation(invocationMatcher, numberOfInvocationsConstraint), false);
 }