예제 #1
0
 public WebTester(CancellationTokenSource tokenSource, TestOptions options)
 {
     Context = new WebTestContext
     {
         TestOptions             = options ?? new TestOptions(),
         CancellationTokenSource = tokenSource ?? new CancellationTokenSource()
     };
     BlockInit();
     _crawler = new CrawlerLight();
     _crawler.PageCrawlCompletedAsync += _crawler_PageCrawlCompleted;
 }
예제 #2
0
 public TestArg(WebTestContext context)
 {
     Context = context;
 }
 public PageTestRefusedArg(CrawledPage crawledPage, WebTestContext context) : base(context)
 {
     CrawledPage = crawledPage;
 }