Esempio n. 1
0
            public void adds_set_with_string_value()
            {
                var s = new Statsd(_udp, SampleEverything);

                s.SendSet("set", "34563478564785xyz");
                _udp.AssertWasCalled(x => x.Send("set:34563478564785xyz|s"));
            }
Esempio n. 2
0
            public void set_exception_fails_silently()
            {
                _udp.Stub(x => x.Send(Arg <string> .Is.Anything)).Throw(new Exception());
                var s = new Statsd(_udp);

                s.SendSet("set", "silent-exception-test");
                Assert.Pass();
            }