예제 #1
0
        public void GetDirectorieS()
        {
            StdFSDir       dir         = new StdFSDir(good_path, false);
            IList <Dir422> directories = dir.GetDirs();

            Assert.AreEqual(6, directories.Count);
        }
예제 #2
0
        public void GetDirs()
        {
            List <Dir422> expected = new List <Dir422>();

            // set up a dir list to compare
            Dir422 dir1 = new StdFSDir(_rootPath + "/Dir1", "Dir1", _root);

            expected.Add(dir1);
            // expected.Add(new StdFSDir("dir2",root));
            // expected.Add(new StdFSDir("dir3",root));
            // expected.Add(new StdFSDir("dir4",root));

            List <Dir422> dirs = (List <Dir422>)_root.GetDirs();

            Assert.NotNull(dirs);
            Assert.AreEqual(expected.Count, dirs.Count);
            Assert.AreEqual(expected[0].Name, dirs[0].Name);

            //This for some reason fails on same types???
            //Assert.AreEqual(expected, dirs);
        }