Beispiel #1
0
        public void EnsureThat_FsUtils_GetAbsolutePathRelativeTo_Works(string file, string relative, string expected)
        {
            var source     = new FsPath(file);
            var relativeTo = new FsPath(relative);

            var result = source.GetAbsolutePathRelativeTo(relativeTo);

            Assert.AreEqual(expected, result.ToString());
        }
        public static string ToImgCacheKey(string url, FsPath outputDir)
        {
            FsPath requested = new FsPath(url);

            return(requested.GetAbsolutePathRelativeTo(outputDir).ToString());
        }