introduce HttpOptions for constructor; fix theVerge parsing

This commit is contained in:
2014-01-19 12:35:47 +01:00
parent 06dfa68323
commit 71eb9e9d66
6 changed files with 122 additions and 25 deletions
+10
View File
@@ -1,4 +1,5 @@
using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Xunit;
@@ -136,5 +137,14 @@ namespace ReadSharp.Tests
//Article result = await reader.Read(new Uri("http://bit.ly/KAh7FJ"));
//Assert.NotEmpty(result.Content);
}
[Fact]
public async Task TestVergeReturnsFullArticle()
{
Article result = await reader.Read(new Uri("http://www.theverge.com/2013/11/18/5116360/nokia-lumia-1520-review"));
Debug.WriteLine(result.Content.Length);
Assert.Contains("Three years ago, Nokia shipped over 110 million smartphones worldwide. ", result.Content);
Assert.True(result.Content.Length > 6000);
}
}
}