Flush() public méthode

public Flush ( ) : void
Résultat void
 public void reading_off_same_instance_gives_most_up_to_date_info()
 {
     var checkSum = new MemoryMappedFileCheckpoint(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 MemoryMappedFileCheckpoint(Filename);
         var readChecksum = new MemoryMappedFileCheckpoint(Filename);
         checkSum.Write(1011);
         checkSum.Flush();
         Assert.AreEqual(1011, readChecksum.Read());
         checkSum.Close();
         readChecksum.Close();
         Thread.Sleep(100);
 }