Пример #1
0
        public void A0_ShowDirContentTest()
        {
            DirectoryViewContainer dv = new DirectoryViewContainer();

            string[] infos = Directory.GetFileSystemEntries(dirLevel0);

            dv.LoadDir(dirLevel0, false);

            Assert.AreEqual(infos.Length + 1, dv.Items.Count);
        }
Пример #2
0
        public void A72_DirectoryHierarchyMovingtTest()
        {
            DirectoryViewContainer dv = new DirectoryViewContainer();

            string[] infos0 = Directory.GetFileSystemEntries(dirLevel0);
            string[] infos1 = Directory.GetFileSystemEntries(dirLevel1);

            dv.LoadDir(dirLevel1, false);
            Assert.AreEqual(infos1.Length + 1, dv.Items.Count);

            dv.MoveUp();
            Assert.AreEqual(infos0.Length + 1, dv.Items.Count);
        }