Exemplo n.º 1
0
        public void NextIntervalTests(RollingInterval 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?GetNextCheckpoint(DateTime instant) => _interval.GetNextCheckpoint(instant);