Esempio n. 1
0
        public void DeleteFromNotExistingFile()
        {
            // Setup
            var pathTree = new PathTree <string>();
            var file     = new PathFile <string>(pathTree, "\\this\\is\\a\\file.txt");

            // Execute
            file.Delete();
        }
Esempio n. 2
0
        public void DeleteNotExistingFile()
        {
            // Setup
            var pathTree = new PathTree <string>();

            pathTree.CreateDirectory("\\this\\is\\a");
            var file = new PathFile <string>(pathTree, "\\this\\is\\a\\file.txt");

            // Execute
            file.Delete();

            // Assert
            Assert.IsFalse(file.Exists);
        }
Esempio n. 3
0
        public void DeleteFile()
        {
            // Setup
            var pathTree = new PathTree <string>();
            var file     = new PathFile <string>(pathTree, "\\this\\is\\a\\file.txt");

            file.Create("Value");

            // Execute
            file.Delete();

            // Assert
            Assert.IsFalse(file.Exists);
        }
Esempio n. 4
0
        public void DeleteNotExistingFile()
        {
            // Setup
            var pathTree = new PathTree<string>();
            pathTree.CreateDirectory("\\this\\is\\a");
            var file = new PathFile<string>(pathTree, "\\this\\is\\a\\file.txt");

            // Execute
            file.Delete();

            // Assert
            Assert.IsFalse(file.Exists);
        }
Esempio n. 5
0
        public void DeleteFromNotExistingFile()
        {
            // Setup
            var pathTree = new PathTree<string>();
            var file = new PathFile<string>(pathTree, "\\this\\is\\a\\file.txt");

            // Execute
            file.Delete();
        }
Esempio n. 6
0
        public void DeleteFile()
        {
            // Setup
            var pathTree = new PathTree<string>();
            var file = new PathFile<string>(pathTree, "\\this\\is\\a\\file.txt");
            file.Create("Value");

            // Execute
            file.Delete();

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