本文整理汇总了C#中Poker.RenderEndTag方法的典型用法代码示例。如果您正苦于以下问题:C# Poker.RenderEndTag方法的具体用法?C# Poker.RenderEndTag怎么用?C# Poker.RenderEndTag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Poker
的用法示例。
在下文中一共展示了Poker.RenderEndTag方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddStyleAttribute3
public void AddStyleAttribute3 ()
{
sw = new StringWriter ();
sw.NewLine = "\n"; // Keep sanity.
Poker w1 = new Poker (sw);
w1.AddStyleAttribute ("mystyle", "my value&space");
w1.RenderBeginTag ("div");
w1.RenderEndTag ();
Assert.AreEqual ("my value&space", w1.StyleValue_At_AddStyleAttribute, "StyleValue_At_AddStyleAttribute");
Assert.AreEqual ("my value&space", w1.StyleValue_At_OnStyleAttributeRender, "StyleValue_At_OnStyleAttributeRender");
Assert.AreEqual ("<div style=\"mystyle:my value&space;\">\n\n</div>", sw.ToString ());
}
示例2: AddStyleAttribute_BackgroundImage3
public void AddStyleAttribute_BackgroundImage3 ()
{
sw = new StringWriter ();
sw.NewLine = "\n"; // Keep sanity.
Poker w1 = new Poker (sw);
w1.AddStyleAttribute ("BackGround-Image", "http://www.mainsoft.com/space here?a=b&c=d");
w1.RenderBeginTag ("div");
w1.RenderEndTag ();
Assert.AreEqual ("http://www.mainsoft.com/space here?a=b&c=d", w1.StyleValue_At_AddStyleAttribute, "StyleValue_At_AddStyleAttribute");
Assert.AreEqual ("http://www.mainsoft.com/space here?a=b&c=d", w1.StyleValue_At_OnStyleAttributeRender, "StyleValue_At_OnStyleAttributeRender");
Assert.AreEqual ("<div style=\"BackGround-Image:url(http://www.mainsoft.com/space%20here?a=b&c=d);\">\n\n</div>", sw.ToString ());
}
示例3: EscapeAttribute3
public void EscapeAttribute3 () {
sw = new StringWriter ();
sw.NewLine = "\n"; // Keep sanity.
Poker w1 = new Poker (sw);
w1.AddAttribute ("attr", "cookies&cream", true);
w1.RenderBeginTag (HtwTag.Div);
w1.RenderEndTag ();
Assert.AreEqual ("cookies&cream", w1.AttrValue_At_AddAttribute, "AttrValue_At_AddAttribute");
Assert.AreEqual ("cookies&cream", w1.AttrValue_At_OnAttributeRender, "AttrValue_At_OnAttributeRender");
Assert.AreEqual ("<div attr=\"cookies&cream\">\n\n</div>", sw.ToString ());
}