Exemplo n.º 1
0
 public void TestInCorrectRedisSetting()
 {
     try
     {
         MyEntitySpider1 spider = new MyEntitySpider1(new Site());
         spider.AddEntityPipeline(new ConsoleEntityPipeline());
         spider.AddEntityType(typeof(TestEntity));
         spider.Run("running-test");
     }
     catch (RedisConnectionException)
     {
         return;
     }
     throw new Exception("TEST FAILED.");
 }
Exemplo n.º 2
0
        public void TestCorrectRedisSetting()
        {
            EntitySpider spider = new MyEntitySpider1();

            spider.Run("running-test");
        }