public CollectionAssert hasSizeBetween ( int lowerBound , int higherBound ) { isNotNull ( ) ; int size = size ( this . actual ) ; if ( ! ( size >= lowerBound && size <= higherBound ) ) { failWithMessage ( "The size <%s> is not between <%s> and <%s>" , size , lowerBound , higherBound ) ; } return this ; }
Checks whether size is between the provided value .