public void TestAO3HTMLDecode() { var r = new AO3Request { Query = "Story" }; r.Result.LoadHtml(SearchManager.GetHtml(r.GetRequestString(new bool[18] { true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true }))); r.FixBasicErrors(); Assert.NotNull(r.DecodeHTML()); }
public void TestGrabFromAO3() { var r = new AO3Request { Query = "abcd" }; r.Result.LoadHtml(SearchManager.GetHtml(r.GetRequestString(new bool[18] { true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true }))); r.FixBasicErrors(); Assert.True(r.Result.ParseErrors.ToList().Count == 0); }
private void BuildAO3Request() { AO3Request ar = new AO3Request(this); UpdateRequestString(ar); }