Exemple #1
0
 public void gauge_SendToStatsd_Success()
 {
     Initialise();
     _outputChannel.Setup(p => p.SendAsync("foo.bar:1|g")).Verifiable();
     _statsd.gauge().foo.bar += 1;
     _outputChannel.VerifyAll();
 }
 public void Gauge_SendToStatsd_Success()
 {
     _outputChannel.Setup(p => p.SendAsync("foo.bar:1|g")).Returns(Task.FromResult(false)).Verifiable();
     _statsd.gauge().foo.bar += 1;
     _outputChannel.VerifyAll();
 }