public bool MovePast(IExpectedCall expectedCall, IRecordedCalls recordedCalls)
        {
            if (recordedCalls.MoveToNext())
              {
            return recordedCalls.Current.Matches(expectedCall);
              }

              return false;
        }
        public bool MovePast(IExpectedCall expectedCall, IRecordedCalls recordedCalls)
        {
            var isCurrentCallStillUnmatched = false;

              while (!isCurrentCallStillUnmatched && recordedCalls.MoveToNext())
              {
            if (recordedCalls.Current.Matches(expectedCall))
            {
              isCurrentCallStillUnmatched = true;
            }
              }
              return isCurrentCallStillUnmatched;
        }
Ejemplo n.º 3
0
 public bool IsSubsequenceOf(IRecordedCalls recordedCalls)
 {
     var result = false;
       while (recordedCalls.MoveToNext())
       {
     if (!SequenceEqual(expectedCalls, recordedCalls.RangeFromCurrentToEnd()))
     {
       result = true;
       break;
     }
       }
       recordedCalls.Rewind();
       return result;
 }