package Ġfail good . internal Ċ Ċ import Ġfail good . Test Ċ import Ġfail good . describe Ċ import Ġfail good . mock . call Ċ import Ġfail good . mock . get Calls Ċ import Ġfail good . mock . mock Ċ import Ġkotlinx . coroutines . coroutine Scope Ċ import Ġstri kt . api . expect That Ċ import Ġstri kt . assertions . contains Exactly Ċ Ċ @ Test Ċ class ĠResources Closer Test Ġ{ ĊĠĠĠ Ġval Ġcontext Ġ= Ġdescribe ( Resources Closer :: class ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġsubject Ġ= Ġcoroutine Scope Ġ{ ĠResources Closer ( this ) Ġ} ĊĠĠĠĠĠĠĠ Ġit (" clo ses Ġautoc los ables ") Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġauto Closeable Ġ= Ġmock < Auto Closeable >() ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsubject . auto Close ( auto Closeable ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsubject . close () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġexpect That ( get Calls ( auto Closeable )). contains Exactly ( call ( Auto Closeable :: close )) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ