mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
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:
parent
cf8040977a
commit
11b5ee92d1
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user