Function

assertCountEquals

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

assertCountEquals

Source set: Common
public 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.

Throws: AssertionError

if the size is not equal to expectedSize

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: