示例#1
0
        public void CanReadName_AutomaticlyMakesAnInitialReadOnStart()
        {
            var input = new StringReader("so-me_na:me other text");
            var reader = new InputReader(input);
            Assert.True(reader.ReadNextLine());

            Assert.AreEqual("so-me_na:me", reader.ReadName());
            Assert.AreEqual(11, reader.Index);
        }
示例#2
0
        public void CanReadName()
        {
            var input = new StringReader("so-me_na:me other text");
            var reader = new InputReader(input);
            Assert.True(reader.ReadNextLine());

            Assert.True(reader.Read());

            Assert.AreEqual("so-me_na:me", reader.ReadName());
            Assert.AreEqual(11,reader.Index);
        }