public void Should_eventually_write_added_events()
        {
            muxer.TryAdd(CreateEventInfo(), true);

            new Action(() => singleFileWorker.Received().WritePendingEventsAsync(
                           Arg.Any <IEventsWriterProvider>(),
                           Arg.Is <ConcurrentBoundedQueue <LogEventInfo> >(q => q.Count == 1),
                           Arg.Any <LogEventInfo[]>(),
                           Arg.Any <AtomicLong>(),
                           Arg.Any <AtomicLong>(),
                           Arg.Any <CancellationToken>()))
            .ShouldPassIn(10.Seconds());
        }