Пример #1
0
        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);
        }