[android-components](../../index.md) / [mozilla.components.support.android.test.espresso](../index.md) / [androidx.test.espresso.ViewInteraction](index.md) / [assertIsChecked](./assert-is-checked.md)

# assertIsChecked

`fun ViewInteraction.assertIsChecked(isChecked: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): ViewInteraction` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/android-test/src/main/java/mozilla/components/support/android/test/espresso/ViewInteraction.kt#L31)

Asserts the View is checked or is not checked based on the Boolean argument.

