custom UriConverter to check for invalid URIs

This commit is contained in:
2013-11-12 22:08:02 +01:00
parent 2a9c30a69b
commit ee989fc019
6 changed files with 57 additions and 15 deletions
+17 -4
View File
@@ -1,8 +1,8 @@
using System;
using System.Threading.Tasks;
using PocketSharp.Models;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Xunit;
using PocketSharp.Models;
namespace PocketSharp.Tests
{
@@ -24,6 +24,19 @@ namespace PocketSharp.Tests
}
[Fact]
public async Task ItemWithInstableImagesIsAdded()
{
var uri = new Uri("http://www.valoronline.com.br");
PocketItem item = await client.Add(uri);
Assert.Equal<Uri>(uri, item.Uri);
itemsToDelete.Add(item.ID);
}
[Fact]
public async Task AddComplexItem()
{
@@ -39,7 +52,7 @@ namespace PocketSharp.Tests
items.ForEach(itm =>
{
if(itm.ID == item.ID)
if (itm.ID == item.ID)
{
itemDesired = itm;
}
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -30,7 +30,7 @@ namespace PocketSharp.Tests
[Fact]
public async Task Are100IdingtemsRetrievedProperly()
{
await FillAccount(8360, 10000);
await FillAccount(9273, 10000);
}
[Fact]