public void CheckShutdownExport(int timeout)
        {
            using var exporter  = new TestActivityExporter();
            using var processor = new ReentrantExportProcessor <Activity>(exporter);

            processor.OnEnd(new Activity("start"));

            // checking before shutdown
            Assert.Single(exporter.Exported);

            processor.Shutdown(timeout);
            Assert.Single(exporter.Exported);
        }
        public void CheckShutdownExport(int timeout)
        {
            var exportedItems = new List <object>();

            using var exporter  = new InMemoryExporter <Activity>(new InMemoryExporterOptions { ExportedItems = exportedItems });
            using var processor = new ReentrantExportProcessor <Activity>(exporter);

            processor.OnEnd(new Activity("start"));

            // checking before shutdown
            Assert.Single(exportedItems);

            processor.Shutdown(timeout);
            Assert.Single(exportedItems);
        }