public void ToString_ReturnsExpected(HtmlText text, string expected) { Assert.Equal(expected, text.ToString()); Assert.Equal(expected, text.Serialize()); Assert.Equal(expected, text.Serialize(HtmlSerializeOptions.None)); Assert.Equal(expected, text.Serialize(HtmlSerializeOptions.NoFormatting)); }
public void TestHtmlDecodingValue() { var tag = new HtmlText(); tag.Value = "10 < 20"; Assert.AreEqual("10 < 20", tag.Value); Assert.AreEqual("10 < 20", tag.ToString()); }