Example #1
0
        public void Test_GetLatestArticleUrl_最新の記事のURLが取得できない場合はnullが戻り値となること()
        {
            var html   = new Html("sample");
            var parser = new TechCrunchPopularHtmlParser(html);
            var url    = parser.GetLatestArticleUrl();

            Assert.IsNull(url);
        }
Example #2
0
        public void Test_GetLatestArticleUrl_最新の記事のURLを取得できること()
        {
            var html   = new Html(ReadHtmlFile());
            var parser = new TechCrunchPopularHtmlParser(html);
            var url    = parser.GetLatestArticleUrl();

            Assert.AreEqual("https://jp.techcrunch.com/2020/09/26/2020-09-23-top-20-ios-homescreen-customization-apps-reach-5-7m-installs-after-ios-14-release/", url);
        }