Example #1
0
        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());
        }
Example #2
0
        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);
        }
Example #3
0
        private void BuildAO3Request()
        {
            AO3Request ar = new AO3Request(this);

            UpdateRequestString(ar);
        }