android-linq
android-linq copied to clipboard
Tests should validate Iterator() contract compliance
Create test method that validate Iterable() custom implementations compliance to the contract.
- test calling next() past the last element raise NoSuchElementException
- test its possible to iterate without calling hasNext()
- and so on
All tests of methods on the Stream interface shall call this method so we can be sure our iterators() are working the way they should.