public void FilePathMatchesReference()
        {
            const string Key = "abcdefghijkl";
            const int    CachedNameLength = 12;

            string expected = $"{string.Join("/", Key.Substring(0, CachedNameLength).ToCharArray())}/{Key}";
            string actual   = PhysicalFileSystemCache.ToFilePath(Key, CachedNameLength);

            Assert.Equal(expected, actual);
        }
示例#2
0
        public void FilePathMatchesReference(string key, int cacheFolderDepth, string expected)
        {
            string actual = PhysicalFileSystemCache.ToFilePath(key, cacheFolderDepth);

            Assert.Equal(expected, actual);
        }
 public string JoinUsingStringCreate()
 => PhysicalFileSystemCache.ToFilePath(Key, CachedNameLength);
示例#4
0
 public string JoinUsingStringCreate()
 => PhysicalFileSystemCache.ToFilePath(Key, this.CacheFolderDepth);