Exemplo n.º 1
0
        public void IsReportingEnabled_SuspensionNotOverButEnabledExplicitly_ReturnTrue()
        {
            var suspension = TimeSpan.FromSeconds(10);

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

            var result = GraphiteState.IsReportingEnabled();

            Assert.That(result, Is.True);
        }
Exemplo n.º 2
0
 private static void ResetState()
 {
     GraphiteState.EnableReporting();
 }