public void GetCacheRootThrows(string cacheFolder, string cacheRootPath, string webRootPath, string contentRootPath) { var cacheOptions = new PhysicalFileSystemCacheOptions { CacheFolder = cacheFolder, CacheRootPath = cacheRootPath }; Assert.Throws <InvalidOperationException>(() => PhysicalFileSystemCache.GetCacheRoot(cacheOptions, webRootPath, contentRootPath)); }
public void GetCacheRoot(string cacheFolder, string cacheRootPath, string webRootPath, string contentRootPath, string expected) { var cacheOptions = new PhysicalFileSystemCacheOptions { CacheFolder = cacheFolder, CacheRootPath = cacheRootPath }; string actual = PhysicalFileSystemCache.GetCacheRoot(cacheOptions, webRootPath, contentRootPath); Assert.Equal(expected, actual); }
public void CacheRootFromOptions(string cacheFolder, string cacheRoot, string webRootPath, string contentRootPath, string expected) { var cacheOptions = new PhysicalFileSystemCacheOptions { CacheFolder = cacheFolder, CacheRoot = cacheRoot }; var cacheRootResult = PhysicalFileSystemCache.GetCacheRoot(cacheOptions, webRootPath, contentRootPath); Assert.Equal(expected, cacheRootResult); }