public void CheckNotSupportedException()
        {
            var baseStream = new MemoryStream();
            var writer     = new CustomCompressionStream(baseStream, false);

            Assert.Throws <NotSupportedException>(() => writer.SetLength(0));
            long x;

            Assert.Throws <NotSupportedException>(() => x = writer.Length);
            Assert.Throws <NotSupportedException>(() => writer.Position++);
            Assert.AreEqual(false, writer.CanSeek);
            Assert.Throws <NotSupportedException>(() => writer.Seek(0, SeekOrigin.Current));
        }