Tests.MetricIntegrationTests.Time.time_with_return_value_and_no_config_setup_should_not_send_metric_but_still_return_value C# (CSharp) Method

time_with_return_value_and_no_config_setup_should_not_send_metric_but_still_return_value() private method

            public void time_with_return_value_and_no_config_setup_should_not_send_metric_but_still_return_value()
            {
                Metrics.Configure(new MetricsConfig());

                var returnValue = Metrics.Time(() => 5, "time");

                Assert.That(LastPacketMessageReceived(), Is.Null);
                Assert.That(returnValue, Is.EqualTo(5));
            }