Exemplo n.º 1
0
        public void DeleteNotExistingDirectory()
        {
            // Setup
            var fileSystem = new PathTree <string>();
            var directory  = new PathDirectory <string>(fileSystem, "\\this\\is\\a\\directory");

            // Execute
            directory.Delete();
        }
Exemplo n.º 2
0
        public void DeleteDirectory()
        {
            // Setup
            var fileSystem = new PathTree <string>();
            var directory  = new PathDirectory <string>(fileSystem, "\\this\\is\\a\\directory");

            directory.Create();

            // Execute
            directory.Delete();

            // Assert
            Assert.IsFalse(directory.Exists);
        }
Exemplo n.º 3
0
        public void DeleteNotExistingDirectory()
        {
            // Setup
            var fileSystem = new PathTree<string>();
            var directory = new PathDirectory<string>(fileSystem, "\\this\\is\\a\\directory");

            // Execute
            directory.Delete();
        }
Exemplo n.º 4
0
        public void DeleteDirectory()
        {
            // Setup
            var fileSystem = new PathTree<string>();
            var directory = new PathDirectory<string>(fileSystem, "\\this\\is\\a\\directory");
            directory.Create();

            // Execute
            directory.Delete();

            // Assert
            Assert.IsFalse(directory.Exists);
        }