clear method

void clear()

Empties recordedStates without unsubscribing.

Useful for multi-phase tests where each phase asserts a fresh subset.

Implementation

void clear() {
  _states.clear();
}