setUp method
void
setUp()
Installs the test scheduler, typically done in setUp
method of test.
Implementation
void setUp() {
if (!_subscription.isDisposed) {
throw StateError('$this is already set-up.');
}
_currentTime = DateTime.now().truncateTo(TimeUnit.day);
_subscription = replaceDefaultScheduler(this);
}