public void CommentThenEof(string fileName) { var fileAsStream = DirStructure.IonTestFileAsStream(fileName); var reader = new UserTextReader(fileAsStream); Assert.AreEqual(IonType.Symbol, reader.MoveNext()); Assert.AreEqual("abc", reader.SymbolValue().Text); Assert.AreEqual(IonType.None, reader.MoveNext()); }
public void EolComment(string fileName) { var fileAsStream = DirStructure.IonTestFileAsStream(fileName); var reader = new UserTextReader(fileAsStream); Assert.AreEqual(IonType.List, reader.MoveNext()); reader.StepIn(); Assert.AreEqual(IonType.None, reader.MoveNext()); reader.StepOut(); Assert.AreEqual(IonType.None, reader.MoveNext()); }