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

time_with_no_config_setup_should_not_send_metric_but_still_run_action() private method

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

                var someValue = 5;
                Metrics.Time(() => { someValue = 10; }, "timer");

                Assert.That(someValue, Is.EqualTo(10));
                Assert.That(LastPacketMessageReceived(), Is.Null);
            }