public void OnServerTimingHeaderPreparation_HostingEnvironmentIsNotDevelopment_ReturnsFalse()
        {
            RestrictToDevelopmentMetricFilter filter  = PrepareRestrictToDevelopmentMetricFilter(false);
            ICollection <ServerTimingMetric>  metrics = PrepareServerTimingMetrics();

            bool result = filter.OnServerTimingHeaderPreparation(new DefaultHttpContext(), metrics);

            Assert.False(result);
        }
        public void OnServerTimingHeaderPreparation_HostingEnvironmentIsNotDevelopment_MetricsAreCleared()
        {
            RestrictToDevelopmentMetricFilter filter  = PrepareRestrictToDevelopmentMetricFilter(false);
            ICollection <ServerTimingMetric>  metrics = PrepareServerTimingMetrics();

            filter.OnServerTimingHeaderPreparation(new DefaultHttpContext(), metrics);

            Assert.Empty(metrics);
        }