public void WhenReinitializeIsCalledWithTimestampBeyondFileShouldNotThrowException() { using (var storage = new kWhStorage("00-00-000-004", BaseDir, 1, Precision.Wh)) { // 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)); } }