Beispiel #1
0
        public void DefaultZero()
        {
            Assert.Equal(0, noLabel.Value());

            labeled.WithLabels("1");
            labeled.WithLabels("2");
            Assert.Equal(new Dictionary <LabelValues, double> {
                { Labeled.Single("1"), 0 },
                { Labeled.Single("2"), 0 },
            }, labeled.Values());
        }
Beispiel #2
0
 public static double Value(this IGauge gauge)
 => gauge.Values().Single().Value;