public void TestArchiveSetUrl() { using (Archive srcmlArchive = new Archive()) { using (Unit srcmlUnit = new Unit()) { srcmlArchive.SetArchiveUrl("http://www.srcml.org/"); srcmlArchive.AddUnit(srcmlUnit); srcmlArchive.ArchivePack(); IntPtr structPtr = srcmlArchive.GetPtrToStruct(); List <IntPtr> structArrayPtr = new List <IntPtr>(); structArrayPtr.Add(structPtr); Assert.IsTrue(LibSrcMLRunner.TestArchiveSetUrl(structArrayPtr.ToArray())); } } }