예제 #1
0
        public void CharReader_MultipleRead()
        {
            const int count = 72 * 1000;

            var sb = new StringBuilder(count);

            Enumerable.Range(0, count / 10).ToList().ForEach(x => sb.Append(CharReaderTest.Sentinel));

            var reader = new CharReader(sb.ToStream());

            Assert.Equal(count, reader.Count());
        }