예제 #1
0
 public void Verifies_Each_Ion_File_Line()
 {
     while (target.Read())
     {
         this.assertions[this.target.CurrentLineNumber - 1].Invoke();
     }
 }
예제 #2
0
파일: Program.cs 프로젝트: lechu445/ion_cs
        private static int ReadIonLines(IIonReader reader)
        {
            int result = 0;

            while (reader.Read())
            {
                result++;
            }

            return(result);
        }
예제 #3
0
 public void Read()
 {
     while (reader.Read())
     {
         if (reader.IsSectionHeader)
         {
             var sectionName = reader.CurrentSection;
             OnReadSection?.Invoke(this, new SectionReaderArgs {
                 SectionName = sectionName
             });
         }
     }
 }