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); }
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); }