public void Gauge()
        {
            StartListening(1);

            _client.Gauge("gauge", 1.1);
            var messages = GetMessages();

            Assert.Equal("test.gauge:1.1|g", messages.FirstOrDefault());
        }
Esempio n. 2
0
        public void Gauge()
        {
            _listener.StartListening();

            _client.Gauge("gauge", 1.1);
            _listener.StopListening(1);

            var messages = _listener.GetMessages();

            Assert.Single(messages);
            Assert.Equal("test.gauge:1.1|g", messages.First());
        }