Exemplo n.º 1
0
        public static void Initialized2_PreRender(Page p)
        {
            Poker c = (Poker)p.Form.Controls [0];

            Assert.IsTrue(c.GetInitialized(), "Initialized_PreRender");
            Assert.IsFalse(c.GetRequiresDataBinding(), "RequiresDataBinding_PreRender");
        }
Exemplo n.º 2
0
        public static void Initialized2_Load(Page p)
        {
            Poker c = (Poker)p.Form.Controls [0];

            Assert.IsTrue(c.GetInitialized(), "Initialized_Load");
            Assert.IsTrue(c.GetRequiresDataBinding(), "RequiresDataBinding_Load");
            c.SetRequiresDataBinding(false);
        }
Exemplo n.º 3
0
        public static void Initialized2_Init(Page p)
        {
            Poker c = new Poker();

            p.Form.Controls.Clear();
            p.Form.Controls.Add(c);
            Assert.IsFalse(c.GetInitialized(), "Initialized_Init");
            Assert.IsFalse(c.GetRequiresDataBinding(), "RequiresDataBinding_Init");
        }
Exemplo n.º 4
0
        public void Defaults()
        {
            Poker p = new Poker();

            Assert.IsNull(p.DataSource, "A1");
            Assert.AreEqual("", p.DataSourceID, "A2");
            Assert.IsFalse(p.GetIsBoundUsingDataSourceID(), "A3");
            Assert.IsFalse(p.GetInitialized(), "A4");
        }
		public static void FormView_PageIndex2_loadComplete (Page p)
		{
			Poker fv = new Poker ();
			p.Form.Controls.Add (fv);
			Assert.AreEqual (0, fv.PageIndex, "#100");
			Assert.AreEqual (true, fv.GetInitialized (), "#101");
			Assert.AreEqual (true, fv.GetRequiresDataBinding (), "#102");
			fv.PageIndex = 2;
			Assert.AreEqual (2, fv.PageIndex, "#103");
			Assert.AreEqual (true, fv.GetRequiresDataBinding (), "#104");
			fv.PageIndex = -1;
			Assert.AreEqual (2, fv.PageIndex, "#105");
			Assert.AreEqual (true, fv.GetRequiresDataBinding (), "#106");
		}
		public void FormView_PageIndex ()
		{
			Poker p = new Poker ();
			Assert.AreEqual (0, p.PageIndex, "#00");
			Assert.AreEqual (false, p.GetInitialized (), "#01");
			Assert.AreEqual (false, p.GetRequiresDataBinding(), "#02");
			p.PageIndex = 2;
			Assert.AreEqual (2, p.PageIndex, "#03");
			Assert.AreEqual (false, p.GetRequiresDataBinding (), "#04");
			p.PageIndex = -1;
			Assert.AreEqual (2, p.PageIndex, "#05");
			Assert.AreEqual (false, p.GetRequiresDataBinding (), "#06");
		}
Exemplo n.º 7
0
		public void Defaults ()
		{
			Poker p = new Poker ();

			Assert.IsNull (p.DataSource, "A1");
			Assert.AreEqual ("", p.DataSourceID, "A2");
			Assert.IsFalse (p.GetIsBoundUsingDataSourceID(), "A3");
			Assert.IsFalse (p.GetInitialized(), "A4");
		}
Exemplo n.º 8
0
		public static void Initialized2_Init (Page p) {
			Poker c = new Poker ();
			p.Form.Controls.Clear ();
			p.Form.Controls.Add (c);
			Assert.IsFalse (c.GetInitialized (), "Initialized_Init");
			Assert.IsFalse (c.GetRequiresDataBinding (), "RequiresDataBinding_Init");
		}