Пример #1
0
 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));
 }
Пример #2
0
 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));
 }
Пример #3
0
        public void TestHtmlDecodingValue()
        {
            var tag = new HtmlText();

            tag.Value = "10 < 20";
            Assert.AreEqual("10 < 20", tag.Value);
            Assert.AreEqual("10 < 20", tag.ToString());
        }