Update HtmlUtilTest for formattable text check

The commit changes some of the test cases for text formattability in HtmlUtilTest.cs. Notably, it modifies a repeated assertion with a string "<i>!?.", replacing it with a fresh assertion testing "!?.</i>".
This commit is contained in:
Ivandro Jao 2024-03-30 22:37:22 +00:00
parent cf8040977a
commit 11b5ee92d1

View File

@ -68,15 +68,15 @@ namespace Test.Logic
Assert.AreEqual("Hallo!", c);
}
[TestMethod]
public void IsTextFormattableFalse()
{
Assert.IsFalse(HtmlUtil.IsTextFormattable("<i></i>"));
Assert.IsFalse(HtmlUtil.IsTextFormattable("<i>!?."));
Assert.IsFalse(HtmlUtil.IsTextFormattable("<i>!?."));
Assert.IsFalse(HtmlUtil.IsTextFormattable("!?.</i>"));
}
[TestMethod]
public void IsTextFormattableTrue()
{
@ -86,4 +86,4 @@ namespace Test.Logic
Assert.IsTrue(HtmlUtil.IsTextFormattable("</i")); // invalid closing tag
}
}
}
}