Example #1
0
        public void Seek_NotZero_Throws(long offset)
        {
            var stream = new SegmentReadStream(new List <byte[]>(), 0);

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

            Assert.Throws <ArgumentException>(() => stream.Seek(0, origin));
        }