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()); }
public void Increments() { noLabel.Increment(); Assert.Equal(1, noLabel.Value()); noLabel.Increment(2); Assert.Equal(3, noLabel.Value()); noLabel.WithLabels().Increment(4); Assert.Equal(7, noLabel.Value()); noLabel.WithLabels().Increment(); Assert.Equal(8, noLabel.Value()); }