Ejemplo n.º 1
0
        public void GetDirectoryPathWithNullName()
        {
            // Setup
            var fileSystem = new PathTree <string>();
            var directory  = new PathDirectory <string>(fileSystem, @"x:\mydirectory");

            // Execute
            directory.DirectoryPath(a_name: null);
        }
Ejemplo n.º 2
0
        public void GetDirectoryPathForNotExistingChild()
        {
            // Setup
            var fileSystem = new PathTree <string>();
            var directory  = new PathDirectory <string>(fileSystem, @"x:\mydirectory");

            // Execute
            var result = directory.DirectoryPath("Directory4");

            // Assert
            Assert.AreEqual(@"x:\mydirectory\Directory4", result);
        }
Ejemplo n.º 3
0
        public void GetDirectoryPathWithNullName()
        {
            // Setup
            var fileSystem = new PathTree<string>();
            var directory = new PathDirectory<string>(fileSystem, @"x:\mydirectory");

            // Execute
            directory.DirectoryPath(a_name: null);
        }
Ejemplo n.º 4
0
        public void GetDirectoryPathForNotExistingChild()
        {
            // Setup
            var fileSystem = new PathTree<string>();
            var directory = new PathDirectory<string>(fileSystem, @"x:\mydirectory");

            // Execute
            var result = directory.DirectoryPath("Directory4");

            // Assert
            Assert.AreEqual(@"x:\mydirectory\Directory4", result);
        }