Пример #1
0
        public void Timer()
        {
            StartListening(1);

            _client.Timer("timer", 1);
            var messages = GetMessages();

            Assert.Equal("test.timer:1|ms", messages.FirstOrDefault());
        }
Пример #2
0
        public void Timer()
        {
            _listener.StartListening();

            _client.Timer("timer", 1);
            _listener.StopListening(1);
            var messages = _listener.GetMessages();

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