public void GaugeValueIsIncreased() { var tags = new Dictionary <string, string> { { "foo", "bar" } }; NoopMetricsFactory metricsFactory = NoopMetricsFactory.Instance; IGauge gauge = metricsFactory.CreateGauge("thegauge", tags); gauge.Update(1); }
public void GaugeValueIsIncreased() { var tags = new Dictionary <string, string> { { "foo", "bar" } }; InMemoryMetricsFactory inMemoryMetricsFactory = new InMemoryMetricsFactory(); IGauge gauge = inMemoryMetricsFactory.CreateGauge("thegauge", tags); Assert.Equal(0, inMemoryMetricsFactory.GetGauge("thegauge", tags)); gauge.Update(1); Assert.Equal(1, inMemoryMetricsFactory.GetGauge("thegauge", tags)); }