public void MetricNameIsUsedForGauge()
        {
            var tags = new Dictionary <string, string> {
                { "foo", "bar" }
            };

            InMemoryMetricsFactory inMemoryMetricsFactory = new InMemoryMetricsFactory();

            inMemoryMetricsFactory.CreateGauge("thegauge", tags);

            Assert.Equal(-1, inMemoryMetricsFactory.GetGauge("thegauge", new Dictionary <string, string>()));
            Assert.Equal(0, inMemoryMetricsFactory.GetGauge("thegauge", tags));
        }
        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));
        }