public void GetSelectArguments() { PokerS p = new PokerS(); DataSourceSelectArguments arg = p.GetSelectArguments(); Assert.AreEqual("SortExp", arg.SortExpression, "GetSelectArguments"); }
public void RenderEndTag() { PokerS p = new PokerS(); string html = p.RenderEndTag(); HtmlDiff.AssertAreEqual("<div>\n\n</div>", html, "RenderBeginTag"); }
public void CreateControlStyle() { PokerS p = new PokerS(); Style s = p.ControlStyle; Assert.AreEqual(Color.Red, s.BackColor, "CreateControlStyle#1"); Assert.AreEqual(Color.Red, s.BorderColor, "CreateControlStyle#2"); p.ApplyStyle(s); string html = p.Render(); HtmlDiff.AssertAreEqual("<div style=\"background-color:Red;border-color:Red;\"></div>", html, "CreateControlStyle"); }
public void GetSelectArguments () { PokerS p = new PokerS (); DataSourceSelectArguments arg = p.GetSelectArguments (); Assert.AreEqual ("SortExp", arg.SortExpression, "GetSelectArguments"); }
public void RenderEndTag () { PokerS p = new PokerS (); string html = p.RenderEndTag (); HtmlDiff.AssertAreEqual ("<div>\n\n</div>", html, "RenderBeginTag"); }
public void CreateControlStyle () { PokerS p = new PokerS (); Style s = p.ControlStyle; Assert.AreEqual (Color.Red, s.BackColor, "CreateControlStyle#1"); Assert.AreEqual (Color.Red, s.BorderColor, "CreateControlStyle#2"); p.ApplyStyle (s); string html = p.Render (); string origHtml = "<div style=\"background-color:Red;border-color:Red;\">\n\n</div>"; HtmlDiff.AssertAreEqual (origHtml, html, "CreateControlStyle"); }