public async Task CheckpointManagerCreatesScope() { using ClientDiagnosticListener listener = new ClientDiagnosticListener(DiagnosticSourceName); var eventHubName = "SomeName"; var endpoint = new Uri("amqp://some.endpoint.com/path"); var fakeConnection = new MockConnection(endpoint, eventHubName); var context = new PartitionContext(eventHubName, "partition"); var data = new EventData(new byte[0], sequenceNumber: 0, offset: 0); var processor = new EventProcessorClient("cg", new InMemoryPartitionManager(), fakeConnection, null); await processor.UpdateCheckpointAsync(data, context); ClientDiagnosticListener.ProducedDiagnosticScope scope = listener.Scopes.Single(); Assert.That(scope.Name, Is.EqualTo(DiagnosticProperty.EventProcessorCheckpointActivityName)); }