Exemplo n.º 1
0
 public void CanSeekFromEnd()
 {
     using (var stream = new RingMemoryStream(SmallBufferSize))
     {
         stream.Seek(0, SeekOrigin.End);
     }
 }
Exemplo n.º 2
0
 public void CannotSeekBeyondStart()
 {
     using (var stream = new RingMemoryStream(SmallBufferSize))
     {
         stream.Seek(-1, SeekOrigin.Current);
     }
 }