Beispiel #1
0
        public async Task LogRawAsync_WithoutEpoch_Valid()
        {
            var statsd    = new Statsd("localhost", 12000, prefix: "", outputChannel: _outputChannel.Object);
            var inputStat = "my.raw.stat:12934|r";

            _outputChannel.Setup(p => p.SendAsync(It.Is <String>(q => q == inputStat))).Returns(Task.FromResult(false)).Verifiable();
            await statsd.LogRawAsync("my.raw.stat", 12934);

            _outputChannel.VerifyAll();
        }