コード例 #1
0
        public void ShouldFindNormalShows()
        {
            const string line = @"<li><a href=""../HettyWainthroppInvestigates/"">Hetty Wainthropp Investigates</a>";
            var show = new EpGuidesShowParser().FindShowsInLetterPage(line);

            Assert.AreEqual("hetty wainthropp investigates", show.First().Name.CleanString);
        }
コード例 #2
0
        public void ShouldIgnoreRadioShows()
        {
            const string line = @"<li><a href=""../ArrestedDevelopment_2000/"">Arrested Development</a> [radio]</li>";
            var show = new EpGuidesShowParser().FindShowsInLetterPage(line);

            Assert.AreEqual(0, show.Count());
        }
コード例 #3
0
        public void ShouldFindBoldShows()
        {
            const string line = @"<li><b><a href=""../Heroes/"">Heroes</a></b></li>";
            var show = new EpGuidesShowParser().FindShowsInLetterPage(line);

            Assert.AreEqual("heroes", show.First().Name.CleanString);
        }