public static void LoadTemplateTest(Page p) { PokerTemplateControl t = new PokerTemplateControl(); ITemplate tmp = t.LoadTemplate("TemplateUserControl.ascx"); tmp.InstantiateIn(p.Form); }
public void TemplateControl_Construct() { eventchecker = false; PokerTemplateControl t = new PokerTemplateControl(); Assert.AreEqual(true, eventchecker, "Construct Failed"); }
public void TemplateControl_TemplateControl() { Assert.IsNull(new Control().TemplateControl); PokerTemplateControl t = new PokerTemplateControl(); Assert.AreEqual(t, t.TemplateControl); }
public void TemplateControl_EvalException() { PokerTemplateControl t = new PokerTemplateControl(); t.Page = new Page(); t.DoEval(null); }
public void TemplateControl_DefaultProperty() { PokerTemplateControl t = new PokerTemplateControl(); Assert.AreEqual(true, t.EnableTheming, "EnableTheming"); Assert.AreEqual(true, t.DoSupportAutoEvents, "SupportAutoEvents"); }
public void TemplateControl_CommitTransaction() { PokerTemplateControl t = new PokerTemplateControl(); t.CommitTransaction += new EventHandler(t_CommitTransaction); Assert.AreEqual(false, commitTransaction, "Before transaction Commited"); t.DoOnCommitTransaction(new EventArgs()); Assert.AreEqual(true, commitTransaction, "After transaction Commited"); }
public void TemplateControl_Error() { PokerTemplateControl t = new PokerTemplateControl(); t.Error += new EventHandler(t_Error); Assert.AreEqual(false, error, "Before error"); t.DoOnError(new EventArgs()); Assert.AreEqual(true, error, "After error"); }
public static void ParseControlTest(Page p) { PokerTemplateControl t = new PokerTemplateControl(); //Does not have definition , must be uncommented //t.AppRelativeVirtualPath = "~\\"; Control c = t.ParseControl("<asp:label id='lb' runat='server' text='test' />"); p.Controls.Add(c); }
public void TemplateControl_TemplateControl () { Assert.IsNull (new Control ().TemplateControl); PokerTemplateControl t = new PokerTemplateControl (); Assert.AreEqual (t, t.TemplateControl); }
public void TemplateControl_Construct () { eventchecker = false; PokerTemplateControl t = new PokerTemplateControl (); Assert.AreEqual (true, eventchecker, "Construct Failed"); }
public static void ParseControlTest (Page p) { PokerTemplateControl t = new PokerTemplateControl (); //Does not have definition , must be uncommented //t.AppRelativeVirtualPath = "~\\"; Control c = t.ParseControl ("<asp:label id='lb' runat='server' text='test' />"); p.Controls.Add(c); }
public static void LoadTemplateTest (Page p) { PokerTemplateControl t = new PokerTemplateControl (); ITemplate tmp = t.LoadTemplate ("TemplateUserControl.ascx"); tmp.InstantiateIn (p.Form); }
public static void LoadControlTest (Page p) { PokerTemplateControl t = new PokerTemplateControl (); p.Form.Controls.Add (t.LoadControl ("TemplateUserControl.ascx")); }
public void TemplateControl_DefaultProperty () { PokerTemplateControl t = new PokerTemplateControl (); Assert.AreEqual (true, t.EnableTheming, "EnableTheming"); Assert.AreEqual (true, t.DoSupportAutoEvents, "SupportAutoEvents"); }
public void TemplateControl_AppRelativeVirtualPathException2() { PokerTemplateControl t = new PokerTemplateControl(); t.AppRelativeVirtualPath = "fake"; }
public void TemplateControl_AppRelativeVirtualPathException2 () { PokerTemplateControl t = new PokerTemplateControl (); t.AppRelativeVirtualPath = "fake"; }
public void TemplateControl_AppRelativeVirtualPathException1 () { PokerTemplateControl t = new PokerTemplateControl (); t.AppRelativeVirtualPath = null; }
public void TemplateControl_EvalException () { PokerTemplateControl t = new PokerTemplateControl (); t.Page = new Page (); t.DoEval (null); }
public void TemplateControl_DefaultPropertyNotWorking() { PokerTemplateControl t = new PokerTemplateControl(); Assert.AreEqual(null, t.AppRelativeVirtualPath, "AppRelativeVirtualPath"); }
public void TemplateControl_AppRelativeVirtualPathException1() { PokerTemplateControl t = new PokerTemplateControl(); t.AppRelativeVirtualPath = null; }
public void TemplateControl_CommitTransaction () { PokerTemplateControl t = new PokerTemplateControl (); t.CommitTransaction += new EventHandler (t_CommitTransaction); Assert.AreEqual (false, commitTransaction, "Before transaction Commited"); t.DoOnCommitTransaction (new EventArgs ()); Assert.AreEqual (true, commitTransaction, "After transaction Commited"); }
public void TemplateControl_LoadControlException() { PokerTemplateControl t = new PokerTemplateControl(); t.LoadControl(null); }
public void TemplateControl_Error () { PokerTemplateControl t = new PokerTemplateControl (); t.Error += new EventHandler (t_Error); Assert.AreEqual (false, error, "Before error"); t.DoOnError (new EventArgs ()); Assert.AreEqual (true, error, "After error"); }
public static void LoadControlTest(Page p) { PokerTemplateControl t = new PokerTemplateControl(); p.Form.Controls.Add(t.LoadControl("TemplateUserControl.ascx")); }
public void TemplateControl_LoadControlException() { PokerTemplateControl t = new PokerTemplateControl (); t.LoadControl (null); }
public void TemplateControl_DefaultPropertyNotWorking () { PokerTemplateControl t = new PokerTemplateControl (); Assert.AreEqual (null, t.AppRelativeVirtualPath, "AppRelativeVirtualPath"); }