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); }
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()); }
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); }