public void DownloadedHtmlIsParseable() { var client = new ExplosmWebClient(); var result = client.GetComicHtml(4125); var parseResult = ExplosmParser.Parse(result.Content); Check.That(parseResult.ImageUri).IsNotNull(); }
public void CanDownloadAComic() { var client = new ExplosmWebClient(); var result = client.GetComicHtml(4125); Check.That(result.Content).IsNotEmpty(); }
public void HandlesNotFound() { var client = new ExplosmWebClient(); Check.ThatCode(() => client.GetComicHtml(999999)).Throws<ComicNotFoundException>(); }