public final TestSubscriber assertValueCount(int count){
  String prefix="";
  boolean passed=true;
  if (done.getCount() != 0) {
    prefix="Subscriber still running! ";
  }
  int s=values.size();
  if (s != count) {
    fail(prefix,"Value counts differ; Expected: " + count + ", Actual: "+ s,errors);
    fail("Value counts differ; Expected: " + count + ", Actual: "+ s);
    passed=false;
  }
  pass("received " + count + " values",passed);
  return this;
}

public final TestSubscriber assertValueCount ( int count ) { String prefix = "" ; boolean passed = true ; if ( done . getCount ( ) != 0 ) { prefix = "Subscriber still running! " ; } int s = values . size ( ) ; if ( s != count ) { fail ( prefix , "Value counts differ; Expected: " + count + ", Actual: " + s , errors ) ; fail ( "Value counts differ; Expected: " + count + ", Actual: " + s ) ; passed = false ; } pass ( "received " + count + " values" , passed ) ; return this ; }
assert that this testsubscriber received the specified number onnext events .
