Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        public async Task Clear()
        {
            await _imageQueue.Clear();

            _queueChanges.OnNext(new ImageQueueChangedEvent());
        }