public void StripAllHtmlParagraphTagsShouldStripAllHtmlParagraphs() { //Arrange string str = "<p>This</p> string contains <p>some</p> html <p>paragraph tags</p>"; //Act string res = ArticleStripper.StripAllHtmlParagraphTags(str); //Assert Assert.True(res.Equals("This string contains some html paragraph tags")); }
public void StripAllHtmlParagraphTagsShouldNotThrowExceptionWhenInputIsNull() { //Arrange string str = null; //Act ArticleStripper.StripAllHtmlParagraphTags(str); //Assert //no exception should be thrown }