@SafeVarargs public final AssertSubscriber<T> assertValuesWith(Consumer<T>... expectations){
  if (!valuesStorage) {
    throw new IllegalStateException("Using assertNoValues() requires enabling values storage");
  }
  final int expectedValueCount=expectations.length;
  if (expectedValueCount != values.size()) {
    throw new AssertionError("Different value count: expected = " + expectedValueCount + ", actual = "+ valueCount,null);
  }
  for (int i=0; i < expectedValueCount; i++) {
    Consumer<T> consumer=expectations[i];
    T actualValue=values.get(i);
    consumer.accept(actualValue);
  }
  return this;
}

@ SafeVarargs public final AssertSubscriber < T > assertValuesWith ( Consumer < T > ... expectations ) { if ( ! valuesStorage ) { throw new IllegalStateException ( "Using assertNoValues() requires enabling values storage" ) ; } final int expectedValueCount = expectations . length ; if ( expectedValueCount != values . size ( ) ) { throw new AssertionError ( "Different value count: expected = " + expectedValueCount + ", actual = " + valueCount , null ) ; } for ( int i = 0 ; i < expectedValueCount ; i ++ ) { Consumer < T > consumer = expectations [ i ] ; T actualValue = values . get ( i ) ; consumer . accept ( actualValue ) ; } return this ; }
assert the specified values have been received in the declared order . values storage should be enabled to use this method .
