示例#1
0
 public void AssetDownloader_StoragePathFor_Null_ThrowsException()
 {
     var assetDownloader = new AssetDownloader <string>(Path.GetTempPath(), key => "", key => $"{key}.jpg");
     var awaiting        = assetDownloader.StoragePathFor(null);
 }
        public void AssetDownloader_GeneratesCorrectFileLocation()
        {
            AssetDownloader assetDownloader = new AssetDownloader(Path.GetTempPath(), null, (string cardId) => $"{cardId}.jpg");

            Assert.AreEqual(Path.Combine(Path.GetTempPath(), "testFile.jpg"), assetDownloader.StoragePathFor("testFile"));
        }
示例#3
0
        public void AssetDownloader_GeneratesCorrectFileLocation()
        {
            AssetDownloader <string> assetDownloader = new AssetDownloader <string>(Path.GetTempPath(), key => "", key => $"{key}.jpg");

            Assert.AreEqual(Path.Combine(Path.GetTempPath(), "testFile.jpg"), assetDownloader.StoragePathFor("testFile"));
        }