public void Clear_ImageQueueChangesEventFired() { _testScheduler.ScheduleAsync(TimeSpan.FromTicks(5), (s, t) => _sut.Clear()); ITestableObserver <ImageQueueChangedEvent> imageQueueChanges = _testScheduler.Start(() => _sut.ImageQueueChanges, 0, 0, 100); imageQueueChanges.Messages.Should().HaveCount(1); A.CallTo(() => _innerQueue.Clear()).MustHaveHappened(); }
public async Task Clear() { await _imageQueue.Clear(); _queueChanges.OnNext(new ImageQueueChangedEvent()); }