using System; using System.Threading.Tasks; using Xunit; using System.Linq; using System.Collections.Generic; namespace ReadSharp.Tests { public class ReadTests : TestsBase { private Reader reader; public ReadTests() : base() { reader = new Reader(); } [Fact] public async Task ReadArticleTest() { Article result = await reader.Read(new Uri("http://frontendplay.com/story/4/http-caching-demystified-part-2-implementation")); Assert.DoesNotContain("", result.Content); Assert.True(result.Content.Length > 15000); } [Fact] public async Task ReadArticleWithContainerNoHeadlineTest() { Article result = await reader.Read(new Uri("http://frontendplay.com/story/4/http-caching-demystified-part-2-implementation"), new ReadOptions() { HasHeaderTags = true }); Assert.Contains("", result.Content); Assert.DoesNotContain("