public void BeforeEachTest()
        {
            const string relativePathToInputFile = @"TestInputFiles\OneNoteApi Demo.one";

            stream            = File.OpenRead(relativePathToInputFile);
            binaryReader      = new BinaryReader(stream);
            oneNoteFileReader = new OneNoteFileReader(binaryReader);
        }
Exemplo n.º 2
0
 public static Section Open(string path)
 {
     using (var stream = File.OpenRead(path))
         using (var reader = new BinaryReader(stream))
         {
             var fileReader    = new OneNoteFileReader(reader);
             var sectionReader = new SectionReader(fileReader);
             return(sectionReader.ReadSection());
         }
 }