public void Timer() { StartListening(1); _client.Timer("timer", 1); var messages = GetMessages(); Assert.Equal("test.timer:1|ms", messages.FirstOrDefault()); }
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()); }