public void timing_SendToStatsd_Success() { Initialise(); _outputChannel.Setup(p => p.SendAsync("foo.bar:1|ms")).Verifiable(); _statsd.timing().foo.bar += 1; _outputChannel.VerifyAll(); }
public void Timing_SendToStatsd_Success() { _outputChannel.Setup(p => p.SendAsync("foo.bar:1|ms")).Returns(Task.FromResult(false)).Verifiable(); _statsd.timing().foo.bar += 1; _outputChannel.VerifyAll(); }