Beispiel #1
0
        public void increases_counter_with_value_of_X()
        {
            Statsd s = new Statsd(udp, _randomGenerator, _stopwatch);

            s.Send <Statsd.Counting>("counter", 5);
            udp.AssertWasCalled(x => x.Send("counter:5|c"));
        }
Beispiel #2
0
        public void send_increase_counter_by_x()
        {
            Statsd s = new Statsd(udp, _randomGenerator, _stopwatch);

            s.Send <Statsd.Counting, int>("counter", 5);
            udp.AssertWasCalled(x => x.Send("counter:5|c"));
        }