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); }
public DateTime?GetNextCheckpoint(DateTime instant) => _interval.GetNextCheckpoint(instant);