public void Seek_NotZero_Throws(long offset) { var stream = new SegmentReadStream(new List <byte[]>(), 0); Assert.Throws <ArgumentOutOfRangeException>(() => stream.Seek(offset, SeekOrigin.Begin)); }
public void Seek_NotBegin_Throws(SeekOrigin origin) { var stream = new SegmentReadStream(new List <byte[]>(), 0); Assert.Throws <ArgumentException>(() => stream.Seek(0, origin)); }