public void StripArticleBodyTextShouldNotThrowExceptionWhenBodyTextIsNull()
        {
            //Arrange
            Article article = new Article();

            //Act
            ArticleStripper.StripArticleBodyText(article);

            //Assert
            //no exception should be thrown
        }
        /// <summary>
        /// Prepares the an article so it looks good in the app.
        /// </summary>
        /// <param name="article"></param>
        /// <returns></returns>
        public Article PrepareArticle(Article article)
        {
            article = ArticleStripper.StripArticleBodyText(article);
            article = ArticleStripper.StripArticleTeasers(article);

            if (article.topImages?.Count > 0)
            {
                article.topImage = article.topImages[0];
            }

            return(article);
        }
        public void StripArticleBodyTextShouldStripTheArticlesBodyText()
        {
            //Arrange
            Article article = new Article()
            {
                bodyText = "This<ul>string contains</ul> unordered list html<ul>tags</ul>"
            };

            //Act
            ArticleStripper.StripArticleBodyText(article);

            //Assert
            Assert.True(article.bodyText.Equals("This unordered list html"));
        }