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); }
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); }