Exemplo n.º 1
0
        public void FileToFileSameDirectoryRelativePathWindowsUri()
        {
            var sourceFilePath      = PathValues.WindowsFilePath1;
            var destinationFilePath = PathValues.WindowsFilePath2;
            var expected            = RelativePathValues.WindowsFilePath1ToWindowsFilePath2Uri;

            var relativePath = PathUtilities.GetRelativePathUsingUriMakeRelativeUri(sourceFilePath, destinationFilePath);

            Assert.AreEqual(expected, relativePath);
        }
Exemplo n.º 2
0
        public void DirectoryToFileInDirectoryRelativePathWindowsUri()
        {
            var sourceFilePath      = PathValues.WindowsDirectoryPath1Unindicated;
            var destinationFilePath = PathValues.WindowsFilePath4;
            var expected            = RelativePathValues.WindowsDirectoryPath1ToWindowsFilePath4Uri;

            var relativePath = PathUtilities.GetRelativePathUsingUriMakeRelativeUri(sourceFilePath, destinationFilePath);

            Assert.AreEqual(expected, relativePath);
        }