Example #1
0
        public async Task StoryLinks_Extract_Correctly()
        {
            var p         = new HNProcessor();
            var storylink = await p.Extract_story_link("https://news.ycombinator.com/item?id=19810504");

            Assert.Equal("https://m.stopa.io/risp-lisp-in-rust-90a0dad5b116", storylink);
        }
Example #2
0
        public async Task SelfLinks_Extract_Correctly()
        {
            var p         = new HNProcessor();
            var storylink = await p.Extract_story_link("https://news.ycombinator.com/item?id=19822801");

            // Assert.Equal("item?id=19822801", storylink);
            Assert.Null(storylink);
        }