public void InsertGetFailureTest()
 {
     var buffer = new RingBufferByte(2000);
     byte[] testValue = Encoding.UTF8.GetBytes("The cat went up the hill.");
     for (int i = 0; i < 1000; i++)
     {
         buffer.Insert(testValue, i);
     }
     Assert.IsNull(buffer.Get(0));
 }
 public void InsertGetSuccessTest()
 {
     var buffer = new RingBufferByte(2000);
     byte[] testValue = Encoding.UTF8.GetBytes("The cat went up the hill.");
     for (int i = 0; i < 1000; i++)
     {
         buffer.Insert(testValue, i);
         if (i%8 == 0 &&
             i > 0)
         {
             byte[] msg = buffer.Get(i - 3);
             Assert.AreEqual(testValue, msg);
         }
     }
 }