public void NextIntervalTests(PersistentFileRollingInterval interval, DateTime instant, DateTime?currentCheckpoint, DateTime?nextCheckpoint)
        {
            var current = interval.GetCurrentCheckpoint(instant);

            Assert.Equal(currentCheckpoint, current);

            var next = interval.GetNextCheckpoint(instant);

            Assert.Equal(nextCheckpoint, next);
        }
Exemplo n.º 2
0
 public DateTime?GetCurrentCheckpoint(DateTime instant) => _interval.GetCurrentCheckpoint(instant);