MustHave extension

on

Methods

mustHaveElements() → void
Throws an error of type ExceptionOfType<EmptyIterable> if the Iterable is empty.
mustHaveMinLength(int n) → void
Throws an error of type ExceptionOfType<LengthMismatch> if the Iterable does not have a minimum number of n elements.
mustHaveSameLength(Iterable other, {String operatorSymbol = ''}) → void
Throws an error of type ErrorOfType<LengthMismatch> if this and other do not have the same length.