Example #1
0
 public void GetJobInfoParserTest()
 {
     Category catalog = new Category(); // TODO: 初始化为适当的值
     Get1010Jobs target = new Get1010Jobs(catalog); // TODO: 初始化为适当的值
     string url = "http://sh.1010jz.com/html/shanghai/011_1522688.html"; // TODO: 初始化为适当的值
     Job expected = null; // TODO: 初始化为适当的值
     Job actual;
     ATag node = new ATag();
     node.Link = url;
     actual = target.GetJobInfoParser(url);
     Console.WriteLine("title:{0}", actual.title);
     Console.WriteLine("email:{0}", actual.poster_email);
 }
Example #2
0
 public void GetHtmlTest()
 {
     Get1010Jobs target = new Get1010Jobs(new Category { id = 3, sp1010 = "http://sh.1010jz.com/mote/" }); // TODO: 初始化为适当的值
     target.SpiderCurrentPage(4);
     Assert.Inconclusive("无法验证不返回值的方法。");
 }