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()); }