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); }
private bool NextExpectationMatchesIgnoringIsActive(Invocation invocation) { return(HasNextExpectation && NextExpectation.MatchesIgnoringIsActive(invocation)); }