Send() public méthode

public Send ( Metric metric ) : void
metric StatsdClient.MetricTypes.Metric
Résultat void
            public void does_not_send_anything()
            {
                var metric = new Counting() { Name = "testMetric", ValueAsInt = 5 };
                var sender = new MockSender();
                sender.Send(metric);

                _udp.AssertWasNotCalled(x => x.Send(Arg<string>.Is.Anything));
            }
            public void does_not_blow_up_if_metric_command_throws()
            {
                var metric = MockRepository.GenerateStub<Counting>();
                metric.Stub(x => x.Command).Throw(new Exception());

                var sender = new MockSender();
                sender.Send(metric);
                Assert.Pass();
            }