toHaveElementsAndNoDuplicates

Expects that the subject of this expectation (an Iterable) has next element(s) and that it does not have duplicate elements.

Return

an Expect for the subject of this expectation.

Since

0.17.0

Samples

expect(listOf("A", "B")).toHaveElementsAndNoDuplicates()

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