notToHaveElements

Expects that the subject of this expectation (an Iterable) does not have a next element (Iterator.hasNext returns false).

Return

an Expect for the subject of this expectation.

Since

0.17.0

Samples

expect(setOf<String>()).notToHaveElements()

fails {
    expect(listOf("A", "B")).notToHaveElements()
}