public void WriteSpeedTest()
 {
     using (var buffer = new RingBufferByteMemoryMap(1000000L, _speedTestFile, "bufferTest"))
     {
         var testArray = Encoding.UTF8.GetBytes("Cat went up the hill.");
         // 10 Million
         for (var i = 0; i < 10000000; i++)
         {
             buffer.Insert(testArray, i);
         }
     }
 }
 public void WriteNoWrapTest()
 {
     if (System.IO.File.Exists(_testFile))
     {
         System.IO.File.Delete(_testFile);
     }
     using (var buffer = new RingBufferByteMemoryMap(10000L, _testFile, "bufferTest"))
     {
         var testArray = Encoding.UTF8.GetBytes("Cat went up the hill.");
         for (var i = 0; i < 25; i++)
         {
             buffer.Insert(testArray, i);
         }
         Assert.AreEqual(24, buffer.LastNumber);
     }
     using (var buffer = new RingBufferByteMemoryMap(10000L, _testFile, "bufferTest"))
     {
         Assert.AreEqual(24, buffer.LastNumber);
     }
 }