public void reading_off_same_instance_gives_most_up_to_date_info() { var checkSum = new FileCheckpoint(Filename); checkSum.Write(0xDEAD); checkSum.Flush(); var read = checkSum.Read(); checkSum.Close(); Assert.AreEqual(0xDEAD, read); }
public void the_new_value_is_accessible_after_flush() { var checkSum = new FileCheckpoint(Filename); var readChecksum = new FileCheckpoint(Filename); checkSum.Write(1011); checkSum.Flush(); Assert.AreEqual(1011, readChecksum.Read()); checkSum.Close(); readChecksum.Close(); }