Function

assertCountEquals

Asserts that this collection of nodes is equal to the given expectedSize.

Source set: Common

Added in 1.11.0-rc01

fun SemanticsNodeInteractionCollection.assertCountEquals(
    expectedSize: Int
): SemanticsNodeInteractionCollection

Asserts that this collection of nodes is equal to the given expectedSize.

Provides a detailed error message on failure.