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); }
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);
public string JoinUsingStringCreate() => PhysicalFileSystemCache.ToFilePath(Key, this.CacheFolderDepth);