public void TreeViewItem_FileZIP_is_File()
        {
            string str = @"C:\librus_MyHomeLib\lib.rus.ec\fb2-000024-030559.zip";
            TreeViewItem_FileZIP zip = new TreeViewItem_FileZIP(str);

            Assert.IsTrue(zip is TreeViewItem_File);
        }
        public void TreeViewItem_FileZIP_Type()
        {
            string str = @"C:\librus_MyHomeLib\lib.rus.ec\fb2-000024-030559.zip";
            TreeViewItem_FileZIP zip = new TreeViewItem_FileZIP(str);

            Assert.AreEqual <ItemType>(zip.Type, ItemType.Zip);
        }
        public void TreeViewItem_FileZIP_New()
        {
            string str = @"C:\librus_MyHomeLib\lib.rus.ec\fb2-000024-030559.zip";
            TreeViewItem_FileZIP zip = new TreeViewItem_FileZIP(str);

            Assert.IsInstanceOfType(zip, typeof(TreeViewItem_File));
        }
        public void TreeViewItem_FilesUnion_Items_Type()
        {
            string               str    = @"C:\librus_MyHomeLib\lib.rus.ec\fb2-000024-030559.zip";
            ITreeViewItem        zip    = new TreeViewItem_FileZIP(str);
            List <ITreeViewItem> childs = zip.GetChilds_Items();

            Assert.AreEqual <ItemType>(childs[0].Type, ItemType.FilesUnion);
        }
        public void TreeViewItem_GetChilds_Items_Type()
        {
            string               str    = @"C:\librus_MyHomeLib\lib.rus.ec\fb2-000024-030559.zip";
            ITreeViewItem        zip    = new TreeViewItem_FileZIP(str);
            List <ITreeViewItem> childs = zip.GetChilds_Items();

            Debug.WriteLine(childs.Count);
            Assert.IsInstanceOfType(childs[0], typeof(TreeViewItem_FilesUnion));
        }
        public void TreeViewItem_FileZIP_GetChilds()
        {
            string               str    = @"C:\librus_MyHomeLib\lib.rus.ec\fb2-000024-030559.zip";
            ITreeViewItem        zip    = new TreeViewItem_FileZIP(str);
            IEnumerable <string> childs = zip.GetChilds();

            foreach (string child in childs)
            {
                Debug.WriteLine(child);
            }
            Assert.IsInstanceOfType(childs, typeof(IEnumerable <string>));
        }
        public void TreeViewItem_GetChilds_Items_Count()
        {
            string               str    = @"C:\librus_MyHomeLib\lib.rus.ec\fb2-000024-030559.zip";
            ITreeViewItem        zip    = new TreeViewItem_FileZIP(str);
            List <ITreeViewItem> childs = zip.GetChilds_Items();

            Debug.WriteLine(childs.Count);
            foreach (var child in childs)
            {
                Debug.WriteLine(child.Name);
            }
            Assert.AreEqual <int>(228, childs.Count);
        }
        public void TreeViewItem_FilesUnion_GetChilds_Items_Count()
        {
            string               str    = @"C:\librus_MyHomeLib\lib.rus.ec\fb2-000024-030559.zip";
            ITreeViewItem        zip    = new TreeViewItem_FileZIP(str);
            List <ITreeViewItem> childs = zip.GetChilds_Items();
            List <ITreeViewItem> files  = childs[0].GetChilds_Items();

            foreach (var file in files)
            {
                Debug.WriteLine(file.Name);
            }
            Assert.AreEqual <int>(101, files.Count);
        }
        public void TreeViewItem_FilesUnion_GetChilds()
        {
            string               str    = @"C:\librus_MyHomeLib\lib.rus.ec\fb2-000024-030559.zip";
            ITreeViewItem        zip    = new TreeViewItem_FileZIP(str);
            List <ITreeViewItem> childs = zip.GetChilds_Items();
            IEnumerable <string> files  = childs[0].GetChilds();

            foreach (string file in files)
            {
                Debug.WriteLine(file);
            }
            Assert.IsInstanceOfType(files, typeof(IEnumerable <string>));
        }
        public void TreeViewItem_FileZIP_GetChilds_Count()
        {
            string               str    = @"C:\librus_MyHomeLib\lib.rus.ec\fb2-000024-030559.zip";
            ITreeViewItem        zip    = new TreeViewItem_FileZIP(str);
            IEnumerable <string> childs = zip.GetChilds();
            int i = 0;

            foreach (string child in childs)
            {
                Debug.WriteLine(child);
                i++;
            }
            Assert.AreEqual <int>(228, i);
        }