コード例 #1
0
        public async Task TestPreCachedFaviconUrl()
        {
            // set up
            var cache = new FaviconUrlCache();

            // run
            var result = await cache.GetFaviconUrlAsync(new Uri("https://www.wetteronline.de/"));

            // check
            Assert.IsTrue(result.Length > 0, "result must contain text");
        }
コード例 #2
0
        public async Task TestFaviconUrl()
        {
            // set up
            var cache = new FaviconUrlCache();

            // run
            var result = await cache.GetFaviconUrlAsync(new Uri("https://github.com/vividos/WhereToFly"));

            // check
            Assert.IsTrue(result.Length > 0, "result must contain text");
        }