public void Setup()
        {
            HLibFileZIP zip = (HLibFileZIP)HLibFactory.GetDiskItem(path, name);

            List <HLibDiscItem> list = zip.GetDiscItemsList();
            HLibFileFB2         fb2  = (HLibFileFB2)list[0];

            book = (HLibBookFB2)fb2.GetDataFromFile();
        }
Пример #2
0
        public void HLibFileZIP_GetDiscItemsList_SYSERROR()
        {
            HLibFileZIP         zip  = new HLibFileZIP(@"F:\1", "SYSERROR.ZIP");
            List <HLibDiscItem> list = zip.GetDiscItemsList();

            foreach (var item in list)
            {
                Debug.WriteLine(item.FullName);
            }
            Assert.AreEqual(0, list.Count);
        }
Пример #3
0
        public void HLibFileZIP_GetDiscItemsList_InArchive()
        {
            List <HLibDiscItem> list = zip.GetDiscItemsList();

            Assert.IsTrue(list[0].InArchive);
        }