public async Task CheckpointManagerCreatesScope() { using ClientDiagnosticListener listener = new ClientDiagnosticListener(DiagnosticSourceName); var manager = new PartitionContext("namespace", "name", "group", "partition", "owner", new InMemoryPartitionManager()); await manager.UpdateCheckpointAsync(0, 0); ClientDiagnosticListener.ProducedDiagnosticScope scope = listener.Scopes.Single(); Assert.That(scope.Name, Is.EqualTo(DiagnosticProperty.EventProcessorCheckpointActivityName)); }