Example #1
0
        private bool NextExpectationMatches(Invocation invocation)
        {
            if (HasNextExpectation)
            {
                //this helps skip over empty ordered expectations
                if (NextExpectation.IsValid && !NextExpectation.IsActive && NextExpectation.HasBeenMet)
                {
                    current++;
                    return(NextExpectationMatches(invocation));
                }

                return(NextExpectation.Matches(invocation));
            }

            return(false);
        }
Example #2
0
 private bool NextExpectationMatchesIgnoringIsActive(Invocation invocation)
 {
     return(HasNextExpectation && NextExpectation.MatchesIgnoringIsActive(invocation));
 }