public void WhenReinitializeIsCalledWithTimestampBeyondFileShouldNotThrowException() { _dataStorageContext.SerialNumber = "00-00-000-004"; using (var storage = new kWhStorage(new LoggerFactory(), _options, _dataStorageContext)) { // Write first value, this should set the start time of the storage. storage.SetValue(new DateTime(2013, 5, 7, 22, 58, 0), 3000, 300.0m, 0.21m); var endOfFile = storage.EndOfFile; storage.ReinitializeSlots(endOfFile.AddDays(1)); } }