本文整理汇总了C#中MonoTests.System.Web.UI.WebControls.PokerGridView.Render方法的典型用法代码示例。如果您正苦于以下问题:C# PokerGridView.Render方法的具体用法?C# PokerGridView.Render怎么用?C# PokerGridView.Render使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MonoTests.System.Web.UI.WebControls.PokerGridView
的用法示例。
在下文中一共展示了PokerGridView.Render方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GridView_Render
public void GridView_Render ()
{
PokerGridView b = new PokerGridView ();
b.DataSource = myds;
b.DataBind ();
string OriginControlHtml = "<div>\r\n\t<table cellspacing=\"0\" rules=\"all\" border=\"1\" style=\"border-collapse:collapse;\">\r\n\t\t<tr>\r\n\t\t\t<th scope=\"col\">Item</th>\r\n\t\t</tr><tr>\r\n\t\t\t<td>Norway</td>\r\n\t\t</tr><tr>\r\n\t\t\t<td>Sweden</td>\r\n\t\t</tr><tr>\r\n\t\t\t<td>France</td>\r\n\t\t</tr><tr>\r\n\t\t\t<td>Italy</td>\r\n\t\t</tr><tr>\r\n\t\t\t<td>Israel</td>\r\n\t\t</tr><tr>\r\n\t\t\t<td>Russia</td>\r\n\t\t</tr>\r\n\t</table>\r\n</div>";
string RenderedControlHtml = b.Render ();
HtmlDiff.AssertAreEqual (OriginControlHtml, RenderedControlHtml, "Rendering");
}
示例2: GridView_PrepareControlHierarchy
public void GridView_PrepareControlHierarchy ()
{
PokerGridView gv = new PokerGridView ();
gv.controlHierarchy = false;
gv.Render ();
Assert.AreEqual (0, gv.Controls.Count, "ControlHierarchy_ControlsCount");
Assert.AreEqual (true, gv.controlHierarchy, "ControlHierarchy_FirstFlow");
gv.DataSource = myds;
gv.DataBind ();
gv.controlHierarchy = false;
gv.Render ();
Assert.AreEqual (1, gv.Controls.Count, "ControlHierarchy_ControlsCountSecondaryFlow");
Assert.AreEqual (true, gv.controlHierarchy, "ControlHierarchy_SecondaryFlow");
}
示例3: GridView_DefaultsRender
public void GridView_DefaultsRender ()
{
PokerGridView b = new PokerGridView ();
string html = b.Render ();
Assert.AreEqual(-1 ,b.Render().IndexOf("table"), "RenderViewState");
}
示例4: GridView_Render
public void GridView_Render ()
{
PokerGridView b = new PokerGridView ();
b.DataSource = myds;
b.DataBind ();
string OriginControlHtml = @"<div>
<table cellspacing=""0"" rules=""all"" border=""1"" style=""border-collapse:collapse;"">
<tr>
<th scope=""col"">Item</th>
</tr><tr>
<td>Norway</td>
</tr><tr>
<td>Sweden</td>
</tr><tr>
<td>France</td>
</tr><tr>
<td>Italy</td>
</tr><tr>
<td>Israel</td>
</tr><tr>
<td>Russia</td>
</tr>
</table>
</div>";
string RenderedControlHtml = b.Render ();
HtmlDiff.AssertAreEqual (OriginControlHtml, RenderedControlHtml, "Rendering");
}