Esempio n. 1
0
        public void WindowsDirectoryPathCombine()
        {
            String path = Path.Combine(Global.WindowsWorkingPath, $"{Global.RandomDirectory}\\");

            Console.WriteLine(path);
            ZephyrDirectory dir = Global.WindowsWorkingDirectory.CreateDirectory(path);

            string testpath = dir.PathCombine(dir.FullName, "michael\\", "j\\", "fox\\");

            Console.WriteLine($"Test Path : {testpath}");
            Assert.AreEqual(testpath, $"{dir.FullName}michael\\j\\fox\\");
        }
Esempio n. 2
0
        public void AwsS3DirectoryPathCombine()
        {
            if (!Global.TestAws)
            {
                throw new Exception("Amazon S3 Tests Are Not Enabled.  Set Global.TestAws To True To Enable.");
            }

            String path = $"{Global.AwsS3WorkingPath}{Global.RandomDirectory}/";

            Console.WriteLine(path);
            ZephyrDirectory dir = Global.AwsS3WorkingDirectory.CreateDirectory(path);

            string testpath = dir.PathCombine(dir.FullName, "michael/", "j/", "fox/");

            Console.WriteLine($"Test Path : {testpath}");
            Assert.AreEqual(testpath, $"{dir.FullName}michael/j/fox/");
        }