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(); }
public void ExceptionHandling() { ScrapeForm f = new ScrapeForm(); string exceptionMessage = "test"; f.BodyHandler = delegate(HtmlElement e) { throw new Exception(exceptionMessage); }; f.Run(); }
public void ScrapeFormTest1() { ScrapeForm f = new ScrapeForm(); f.Run(); }