public void TestOtherStreamStuff()
        {
            var mem = new byte[2];
            var ms  = new MemoryStreamer(mem);

            Assert.Throws <ArgumentOutOfRangeException>(() => ms.SetLength(mem.Length + 1));
            ms.Flush();
        }
        public void TestLength()
        {
            var mem = new byte[100];
            var ss  = new MemoryStreamer(mem);

            Assert.Equal(100, ss.Length);
            Assert.Equal(100, ss.MaxLength);
            ss.SetLength(0);
            Assert.Equal(0, ss.Length);
            ss.Write((UInt32)0);
            Assert.Equal(4, ss.Length);
            ss.Clear();
            Assert.Equal(0, ss.Length);
        }