Beispiel #1
0
 public void TestHtmlDecodingValue()
 {
     var tag = new HtmlText();
     tag.Value = "10 < 20";
     Assert.AreEqual("10 < 20", tag.Value);
     Assert.AreEqual("10 < 20", tag.ToString());
 }
Beispiel #2
0
 public override bool Equals(object obj)
 {
     if (obj == null || GetType() != obj.GetType())
     {
         return(false);
     }
     else
     {
         HtmlText t = (HtmlText)obj;
         return(t.Value.Equals(Value));
     }
 }