public void checkpoints_are_dumped_on_disk_only_after_flush() { _checkpoint.Update(EndPoint1, 1000); Assert.AreEqual(0, new FileInfo(Filename).Length); _checkpoint.Flush(); Assert.AreEqual(4 + 4 + 8, new FileInfo(Filename).Length); }
public override void SetUp() { base.SetUp(); var checkpoint = new FileMultiCheckpoint(Filename, 3); checkpoint.Update(EndPoint1, 1000); checkpoint.Update(EndPoint2, 2000); checkpoint.Update(EndPoint3, 3000); checkpoint.Flush(); checkpoint.Dispose(); }