Пример #1
0
        private static async Task TestParseRssLinksAsync(string url, int expectedNumberOfLinks)
        {
            string[] urls = await FeedReader.ParseFeedUrlsAsStringAsync(url).ConfigureAwait(false);

            Assert.AreEqual(expectedNumberOfLinks, urls.Length);
        }
Пример #2
0
 private void TestParseRssLinks(string url, int expectedNumberOfLinks)
 {
     string[] urls = FeedReader.ParseFeedUrlsAsStringAsync(url).Result;
     Assert.AreEqual(expectedNumberOfLinks, urls.Length);
 }