Example #1
0
 public void Timeout()
 {
     ScrapeForm f = new ScrapeForm();
     f.Timeout = new TimeSpan(0,0,1);
     f.BodyHandler = delegate(HtmlElement e)
     {
         Thread.Sleep((int) f.Timeout.TotalMilliseconds + 500);
     };
     f.Run();
 }
Example #2
0
 public void ExceptionHandling()
 {
     ScrapeForm f = new ScrapeForm();
     string exceptionMessage = "test";
     f.BodyHandler = delegate(HtmlElement e)
     {
         throw new Exception(exceptionMessage);
     };
     f.Run();
 }
Example #3
0
 public void ScrapeFormTest1()
 {
     ScrapeForm f = new ScrapeForm();
     f.Run();
 }