respect given_url if no resolved_url is given

This commit is contained in:
2013-12-27 21:34:22 +01:00
parent 85c4ca2c65
commit 670fecb1e0
3 changed files with 28 additions and 4 deletions
+14
View File
@@ -246,5 +246,19 @@ namespace PocketSharp.Tests
Assert.True(items.Count == 1 && items[0].IsDeleted);
}
[Fact]
public async Task AreUncachedItemsProperlyResolved()
{
PocketItem item = await client.Add(new Uri("http://de.ign.com/m/feature/21608/die-20-besten-kurzfilme-des-jahres-2013?bust=1"));
List<PocketItem> items = await client.Get(state: State.all);
Assert.NotNull(item.Uri);
Assert.NotNull(items[0].Uri);
Assert.Equal(item.Uri, items[0].Uri);
itemsToDelete.Add(item.ID);
}
}
}