public void TestSeek() { using (var stream = new CompressedStream(new DummyNetworkStream())) { Assert.Throws <NotSupportedException> (() => stream.Seek(0, SeekOrigin.Begin)); Assert.Throws <NotSupportedException> (() => { var x = stream.Position; }); Assert.Throws <NotSupportedException> (() => stream.Position = 500); } }