introduce HttpOptions for constructor; fix theVerge parsing
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user