Esempio n. 1
0
        public void GetFileStatsWithNullpath()
        {
            // Setup
            var fileSystem = new PathTree <string>();

            fileSystem.CreateFile(@"X:\Directory\File.dat", "Value");

            // Execute
            fileSystem.GetLeafValue(a_path: null);
        }
Esempio n. 2
0
        public void CreateFile()
        {
            // Setup
            var created      = DateTime.UtcNow;
            var lastModified = DateTime.UtcNow;
            var fileSystem   = new PathTree <string>();

            // Execute
            fileSystem.CreateFile(@"X:\Directory\File.dat", "Value");

            // Assert
            Assert.IsTrue(fileSystem.FileExists(@"X:\Directory\File.dat"));
            Assert.AreEqual("Value", fileSystem.GetLeafValue(@"X:\Directory\File.dat"));
        }
Esempio n. 3
0
        public void CreateFile()
        {
            // Setup
            var created = DateTime.UtcNow;
            var lastModified = DateTime.UtcNow;
            var fileSystem = new PathTree<string>();

            // Execute
            fileSystem.CreateFile(@"X:\Directory\File.dat", "Value");

            // Assert
            Assert.IsTrue(fileSystem.FileExists(@"X:\Directory\File.dat"));
            Assert.AreEqual("Value", fileSystem.GetLeafValue(@"X:\Directory\File.dat"));
        }
Esempio n. 4
0
        public void GetLeafValue()
        {
            // Setup
            var created      = DateTime.UtcNow;
            var lastModified = DateTime.UtcNow;
            var fileSystem   = new PathTree <string>();

            fileSystem.CreateFile(@"X:\Directory\File.dat", "Value");

            // Execute
            var result = fileSystem.GetLeafValue(@"X:\Directory\File.dat");

            // Assert
            Assert.AreEqual("Value", result);
        }
Esempio n. 5
0
        public void GetLeafValue()
        {
            // Setup
            var created = DateTime.UtcNow;
            var lastModified = DateTime.UtcNow;
            var fileSystem = new PathTree<string>();
            fileSystem.CreateFile(@"X:\Directory\File.dat", "Value");

            // Execute
            var result = fileSystem.GetLeafValue(@"X:\Directory\File.dat");

            // Assert
            Assert.AreEqual("Value", result);
        }
Esempio n. 6
0
        public void GetFileStatsWithNullpath()
        {
            // Setup
            var fileSystem = new PathTree<string>();
            fileSystem.CreateFile(@"X:\Directory\File.dat", "Value");

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