package Ġcom . ad ject iv emon k 2 . pixels . theme Ċ Ċ import Ġandroidx . compose . material . Text Ċ import Ġandroidx . compose . runtime . collect As State Ċ import Ġandroidx . compose . ui . test . assertIs Displayed Ċ import Ġandroidx . compose . ui . test . on Node With Text Ċ import Ġde . mann oder ma us . junit 5 . compose . create Compose Extension Ċ import Ġkotlinx . coroutines . flow . Mutable State Flow Ċ import Ġorg . junit . jupiter . api . DisplayName Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġorg . junit . jupiter . api . extension . Register Extension Ċ Ċ internal Ġclass ĠTheme Test Ġ{ ĊĊĠ Ġ@ Jvm Field Ġ@ Register Extension Ġval Ġextension Ġ= Ġcreate Compose Extension () ĊĊĠ Ġ@ Test Ġ@ DisplayName (" Testing Ġtheme Ġchange Ġdoes Ġnot Ġaffect Ġtext ") Ġfun Ġtest Theme () Ġ{ ĊĠĠĠ Ġval Ġtheme Is Dark Ġ= ĠMutable State Flow ( false ) ĊĠĠĠ Ġextension . setContent Ġ{ ĊĠĠĠĠĠ ĠPixel s Theme ( ĊĠĠĠĠĠĠĠ Ġis Dark Theme Ġ= Ġtheme Is Dark . collect As State (). value ĊĠĠĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠĠĠ ĠText ( text Ġ= Ġ" Android ") ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġextension . on Node With Text (" Android "). assertIs Displayed () ĊĠĠĠ Ġtheme Is Dark . value Ġ= Ġtrue ĊĠĠĠ Ġextension . on Node With Text (" Android "). assertIs Displayed () ĊĠ Ġ} Ċ } Ċ