Beispiel #1
0
        public void TestArchiveRegisterFileExtension()
        {
            using (Archive srcmlArchive = new Archive()) {
                using (Unit srcmlUnit = new Unit()) {
                    srcmlArchive.RegisterFileExtension("h", LibSrcMLRunner.SrcMLLanguages.SRCML_LANGUAGE_CXX);
                    srcmlArchive.AddUnit(srcmlUnit);
                    srcmlArchive.ArchivePack();
                    IntPtr structPtr = srcmlArchive.GetPtrToStruct();

                    List <IntPtr> structArrayPtr = new List <IntPtr>();
                    structArrayPtr.Add(structPtr);
                    Assert.IsTrue(LibSrcMLRunner.TestArchiveRegisterFileExtension(structArrayPtr.ToArray()));
                }
            }
        }