disposed property

bool disposed
getter/setter pair

Whether dispose has been called, for a test that wants to assert a device was actually torn down rather than merely dropped.

Implementation

bool disposed = false;