public static string GetUnresolvedFilePathAndResolve(string sourcePath, string relativeFilePath, IPathResolver pathResolver)
        {
            var resolvedPath = PathResolverTestFixture.GetUnresolvedPathAndResolve(sourcePath, relativeFilePath,
                                                                                   (x) => pathResolver.ResolveFilePath(x));

            return(resolvedPath);
        }
        public void WindowsFilePathToFileInParentDirectory()
        {
            var sourceFilePath   = PathValues.WindowsFilePath1;
            var relativeFilePath = RelativePathValues.WindowsFilePath1ToWindowsFilePath3;
            var expected         = PathValues.WindowsFilePath3;

            var resolvedPath = PathResolverTestFixture.GetUnresolvedFilePathAndResolve(sourceFilePath, relativeFilePath, this.PathResolver);

            Assert.AreEqual(expected, resolvedPath);
        }
        public void NonWindowsDirectoryPathToFileInTwiceDerivedDirectory()
        {
            var sourceFilePath   = PathValues.NonWindowsDirectoryPath1Unindicated;
            var relativeFilePath = RelativePathValues.NonWindowsDirectoryPath1ToNonWindowsFilePath1;
            var expected         = PathValues.NonWindowsFilePath1;

            var resolvedPath = PathResolverTestFixture.GetUnresolvedFilePathAndResolve(sourceFilePath, relativeFilePath, this.PathResolver);

            Assert.AreEqual(expected, resolvedPath);
        }
        public void WindowsSameFileRelativePath()
        {
            var sourceFilePath   = PathValues.WindowsFilePath1;
            var relativeFilePath = RelativePathValues.SameToSame;
            var expected         = sourceFilePath;

            var resolvedPath = PathResolverTestFixture.GetUnresolvedFilePathAndResolve(sourceFilePath, relativeFilePath, this.PathResolver);

            Assert.AreEqual(expected, resolvedPath);
        }