public void TestRemoveBoldStyleTag() { string expected = "text"; string formatted = StringUtils.B(expected); Assert.AreEqual(expected, StringUtils.RemoveRichTextTags(formatted)); }
public void TestRemoveColorMultipleInnerStyleTags() { string expected = "red green blue"; string formatted = StringUtils.B(string.Format("{0} {1} {2}", StringUtils.C("red", ColorCode.Clear), StringUtils.C("green", ColorCode.Error), StringUtils.C("blue", ColorCode.LevelDebug) )); Assert.AreEqual(expected, StringUtils.RemoveRichTextTags(formatted)); }