package Ġcom . github . had il q . youtube app . data . repository Ċ Ċ import Ġcom . github . had il q . youtube app . data . di . Fake Domain Module Ċ import Ġcom . github . had il q . youtube app . domain . entity . Connection Result Ċ import Ġio . mock k . co Every Ċ import Ġkotlinx . coroutines . run Blocking Ċ import Ġorg . junit . Assert Ċ import Ġorg . junit . jupiter . api . Assertions . assertEquals Ċ import Ġorg . junit . jupiter . api . Test Ċ Ċ internal Ġclass ĠGoogle Play Repository Impl Test Ġ{ ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġis Google Play Services Available () Ġ= Ġwith ( Fake Domain Module ()) Ġ{ ĊĠĠĠ Ġval Ġany Connection Result : ĠConnection Result Ġ= ĠConnection Result . Fail ( 0 ) ĊĠĠĠ Ġrun Blocking Ġ{ ĊĠĠĠĠĠ Ġwith ( google DataSource ) Ġ{ Ġco Every Ġ{ Ġis Google Play Services Available () Ġ} Ġreturns Ġany Connection Result Ġ} ĊĠĠĠĠĠ Ġval Ġrepository Ġ= ĠGoogle Play Repository Impl () ĊĊĠĠĠĠĠ Ġval Ġresult Ġ= Ġrepository . run Ġ{ Ġis Google Play Services Available () Ġ} ĊĊĠĠĠĠĠ ĠAssert . assertEquals ( result , Ġany Connection Result ) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġis User Res olvable Error () Ġ= Ġwith ( Fake Domain Module ()) Ġ{ ĊĠĠĠ Ġval Ġany Connection Result : ĠConnection Result Ġ= ĠConnection Result . Fail ( 0 ) ĊĠĠĠ Ġval Ġany Result Ġ= Ġtrue ĊĠĠĠ Ġrun Blocking Ġ{ ĊĠĠĠĠĠ Ġwith ( google DataSource ) Ġ{ Ġco Every Ġ{ Ġis User Res olvable Error ( any Connection Result ) Ġ} Ġreturns Ġany Result Ġ} ĊĠĠĠĠĠ Ġval Ġrepository Ġ= ĠGoogle Play Repository Impl () ĊĊĠĠĠĠĠ Ġval Ġresult Ġ= Ġrepository . run Ġ{ Ġis User Res olvable Error ( any Connection Result ) Ġ} ĊĊĠĠĠĠĠ ĠassertEquals ( result , Ġany Result ) ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ