next method

T next()

Returns the next value or throws when the fixture is exhausted.

Implementation

T next() {
  if (_index >= _values.length) {
    throw StateError('Auth test sequence is exhausted');
  }
  return _values[_index++];
}