Esempio n. 1
0
        public  async Task TestUrlCheckingGoodPath()
        {
            var service = new UrlCheckingService();
            var result =await service.IsAccessibleUrl("http://google.kz");
            Assert.IsTrue(result);

        }
Esempio n. 2
0
 public async Task TestUrlCheckingSadFormatPath()
 {
     var service = new UrlCheckingService();
     var result = await service.IsAccessibleUrl("http:aaa");
     Assert.IsFalse(result);
 }
Esempio n. 3
0
 public async Task TestUrlCheckingSadNetworkPath()
 {
     var service = new UrlCheckingService();
     var result = await service.IsAccessibleUrl("http://xz.egg/dacom");
     Assert.IsFalse(result);
 }