Пример #1
0
        public void EnhancedMemoryStream_ReadStringCb()
        {
            var es = new EnhancedMemoryStream();
            int cb;

            es.WriteStringNoLen("Hello World!");
            cb = (int)es.Position;

            es.Seek(0, SeekOrigin.Begin);
            Assert.AreEqual("Hello World!", es.ReadString(cb));
        }