Exemplo n.º 1
0
        public void Stop_RemainingGetLoggedIfCancelled()
        {
            taskFactory.Expect(x => x.IsTaskCancelled()).Return(true);

            spanProcessor.spanQueue.Add(new Span());
            spanProcessor.Stop();

            clientProvider.AssertWasCalled(x => x.Log(Arg <List <LogEntry> > .Is.Anything));
        }
        public void StopProcessingSpans()
        {
            SetupSpanCollector();

            spanCollector.Stop();

            spanProcessorStub.AssertWasCalled(x => x.Stop());
            clientProviderStub.AssertWasCalled(x => x.Close());
        }