public void CanRemoveMetricFromRegistry() { var name = new MetricName("MeterTests.Can_safely_remove_metrics_from_outer_collection_without_affecting_registry"); var meter = registry.Meter("MeterTests.Can_safely_remove_metrics_from_outer_collection_without_affecting_registry"); meter.Mark(3); registry.Remove(name); Assert.True(!registry.Metrics.ContainsKey(name), "Metric was removed from central registry"); }