예제 #1
0
        public void GetDirectoriesInDirectoryWithNull()
        {
            // Setup
            var fileSystem = new PathTree <string>();

            // Execute
            fileSystem.GetDirectories(a_path: null);
        }
예제 #2
0
        public void GetDirectoriesInNonExistantDirectory()
        {
            // Setup
            var fileSystem = new PathTree <string>();

            // Execute
            fileSystem.GetDirectories(@"X:\MYDIRECTORY");
        }
예제 #3
0
        public void GetDirectoryInRoot()
        {
            // Setup
            var fileSystem = new PathTree <string>();

            fileSystem.CreateDirectory(@"x:\directory1");
            fileSystem.CreateDirectory(@"x:\directory2\child");
            fileSystem.CreateFile(@"x:\directory3\file.rgb", "Value");

            // Execute
            var directoryPaths = fileSystem.GetDirectories(@"X:\");

            // Assert
            Assert.AreEqual(3, directoryPaths.Length);
        }
예제 #4
0
        public void GetDirectoriesWithSearchPattern()
        {
            // Setup
            var fileSystem = new PathTree <string>();

            fileSystem.CreateDirectory(@"x:\mydirectory\directory1");
            fileSystem.CreateDirectory(@"x:\mydirectory\directory2\child");
            fileSystem.CreateFile(@"x:\mydirectory\directory3\file.rgb", "Value");

            // Execute
            var directoryPaths = fileSystem.GetDirectories(@"X:\MYDIRECTORY", "*1");

            // Assert
            Assert.AreEqual(1, directoryPaths.Length);
        }
예제 #5
0
        public void GetDirectoryInRoot()
        {
            // Setup
            var fileSystem = new PathTree<string>();
            fileSystem.CreateDirectory(@"x:\directory1");
            fileSystem.CreateDirectory(@"x:\directory2\child");
            fileSystem.CreateFile(@"x:\directory3\file.rgb", "Value");

            // Execute
            var directoryPaths = fileSystem.GetDirectories(@"X:\");

            // Assert
            Assert.AreEqual(3, directoryPaths.Length);
        }
예제 #6
0
        public void GetDirectoriesWithSearchPattern()
        {
            // Setup
            var fileSystem = new PathTree<string>();
            fileSystem.CreateDirectory(@"x:\mydirectory\directory1");
            fileSystem.CreateDirectory(@"x:\mydirectory\directory2\child");
            fileSystem.CreateFile(@"x:\mydirectory\directory3\file.rgb", "Value");

            // Execute
            var directoryPaths = fileSystem.GetDirectories(@"X:\MYDIRECTORY", "*1");

            // Assert
            Assert.AreEqual(1, directoryPaths.Length);
        }
예제 #7
0
        public void GetDirectoriesInNonExistantDirectory()
        {
            // Setup
            var fileSystem = new PathTree<string>();

            // Execute
            fileSystem.GetDirectories(@"X:\MYDIRECTORY");
        }
예제 #8
0
        public void GetDirectoriesInDirectoryWithNull()
        {
            // Setup
            var fileSystem = new PathTree<string>();

            // Execute
            fileSystem.GetDirectories(a_path: null);
        }