Esempio n. 1
0
        public static void LoadTemplateTest(Page p)
        {
            PokerTemplateControl t   = new PokerTemplateControl();
            ITemplate            tmp = t.LoadTemplate("TemplateUserControl.ascx");

            tmp.InstantiateIn(p.Form);
        }
Esempio n. 2
0
        public void TemplateControl_Construct()
        {
            eventchecker = false;
            PokerTemplateControl t = new PokerTemplateControl();

            Assert.AreEqual(true, eventchecker, "Construct Failed");
        }
Esempio n. 3
0
        public void TemplateControl_TemplateControl()
        {
            Assert.IsNull(new Control().TemplateControl);
            PokerTemplateControl t = new PokerTemplateControl();

            Assert.AreEqual(t, t.TemplateControl);
        }
Esempio n. 4
0
        public void TemplateControl_EvalException()
        {
            PokerTemplateControl t = new PokerTemplateControl();

            t.Page = new Page();
            t.DoEval(null);
        }
Esempio n. 5
0
        public void TemplateControl_DefaultProperty()
        {
            PokerTemplateControl t = new PokerTemplateControl();

            Assert.AreEqual(true, t.EnableTheming, "EnableTheming");
            Assert.AreEqual(true, t.DoSupportAutoEvents, "SupportAutoEvents");
        }
Esempio n. 6
0
        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");
        }
Esempio n. 7
0
        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");
        }
Esempio n. 8
0
        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);
        }
Esempio n. 9
0
		public void TemplateControl_TemplateControl ()
		{
			Assert.IsNull (new Control ().TemplateControl);
			PokerTemplateControl t = new PokerTemplateControl ();
			Assert.AreEqual (t, t.TemplateControl);
		}
Esempio n. 10
0
		public void TemplateControl_Construct ()
		{
			eventchecker = false;	
			PokerTemplateControl t = new PokerTemplateControl ();
			Assert.AreEqual (true, eventchecker, "Construct Failed");
		}
Esempio n. 11
0
		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);
		}
Esempio n. 12
0
		public static void LoadTemplateTest (Page p)
		{
			PokerTemplateControl t = new PokerTemplateControl ();
			ITemplate tmp = t.LoadTemplate ("TemplateUserControl.ascx");
			tmp.InstantiateIn (p.Form);
		}
Esempio n. 13
0
		public static void LoadControlTest (Page p)
		{
			PokerTemplateControl t = new PokerTemplateControl ();
			p.Form.Controls.Add (t.LoadControl ("TemplateUserControl.ascx"));
		}
Esempio n. 14
0
		public void TemplateControl_DefaultProperty ()
		{
			PokerTemplateControl t = new PokerTemplateControl ();
			Assert.AreEqual (true, t.EnableTheming, "EnableTheming");
			Assert.AreEqual (true, t.DoSupportAutoEvents, "SupportAutoEvents");
		}
Esempio n. 15
0
        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;
		}
Esempio n. 18
0
		public void TemplateControl_EvalException ()
		{
			PokerTemplateControl t = new PokerTemplateControl ();
			t.Page = new Page ();
			t.DoEval (null);
		}
Esempio n. 19
0
        public void TemplateControl_DefaultPropertyNotWorking()
        {
            PokerTemplateControl t = new PokerTemplateControl();

            Assert.AreEqual(null, t.AppRelativeVirtualPath, "AppRelativeVirtualPath");
        }
Esempio n. 20
0
        public void TemplateControl_AppRelativeVirtualPathException1()
        {
            PokerTemplateControl t = new PokerTemplateControl();

            t.AppRelativeVirtualPath = null;
        }
Esempio n. 21
0
		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");
		}
Esempio n. 22
0
        public void TemplateControl_LoadControlException()
        {
            PokerTemplateControl t = new PokerTemplateControl();

            t.LoadControl(null);
        }
Esempio n. 23
0
		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");
		}
Esempio n. 24
0
        public static void LoadControlTest(Page p)
        {
            PokerTemplateControl t = new PokerTemplateControl();

            p.Form.Controls.Add(t.LoadControl("TemplateUserControl.ascx"));
        }
Esempio n. 25
0
		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");
		}