Beispiel #1
0
        public void IsReportingEnabled_SuspensionNotOverButEnabledExplicitly_ReturnTrue()
        {
            var suspension = TimeSpan.FromSeconds(10);

            FreezeSystemTime(SystemTime.Now());
            MetricsState.SuspendReporting(suspension);
            MetricsState.EnableReporting();

            var result = MetricsState.IsReportingEnabled();

            Assert.That(result, Is.True);
        }
Beispiel #2
0
 private static void ResetState()
 {
     MetricsState.EnableReporting();
 }