public void Observe() { noLabel.Observe(2); Assert.Equal(1, noLabel.Count()); Assert.Equal(2, noLabel.Sum()); Assert.Equal(0, noLabel.BucketValue(1)); Assert.Equal(1, noLabel.BucketValue(2.5)); noLabel.WithLabels().Observe(4); Assert.Equal(2, noLabel.Count()); Assert.Equal(6, noLabel.Sum()); Assert.Equal(0, noLabel.BucketValue(1)); Assert.Equal(1, noLabel.BucketValue(2.5)); Assert.Equal(2, noLabel.BucketValue(5)); Assert.Equal(2, noLabel.BucketValue(7.5)); Assert.Equal(2, noLabel.BucketValue(10)); Assert.Equal(2, noLabel.BucketValue(double.PositiveInfinity)); }