Exemple #1
0
        public void TestGrabFromFanfictionNet()
        {
            var r = new FanfictionRequest
            {
                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);
        }
Exemple #2
0
        public void TestFanfictionNetTMLDecode()
        {
            var r = new FanfictionRequest
            {
                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());
        }