public void Counter()
        {
            StartListening(1);
            _client.Counter("counter");
            var messages = GetMessages();

            Assert.Equal("test.counter:1|c", messages.FirstOrDefault());
        }
        public void Counter()
        {
            _listener.StartListening();
            _client.Counter("counter");
            _listener.StopListening(1);
            var messages = _listener.GetMessages();

            Assert.Single(messages);
            Assert.Equal("test.counter:1|c", messages.First());
        }