Beispiel #1
0
        public void ConvertToPlainText_Test()
        {
            //arrange
            var htmlString = "<p>Hello <b>World</b></p>";

            //act
            var result = _generalHelper.ConvertHtmlToPlainText(htmlString);

            //assert
            Assert.AreEqual(result.Trim(), "Hello World", "The Html Conversion was not successful.");
            Assert.AreNotEqual(result, htmlString, "The exact html string was returned!");
        }