public void DataSource_WithDataSourceID()
        {
            Test2DataSource ds = new Test2DataSource();

            ds.ID = "mono";
            TestBaseDataList bdl = new TestBaseDataList();
            Page             p   = new Page();

            bdl.Page = p;
            ds.Page  = p;
            p.Controls.Add(ds);
            p.Controls.Add(bdl);
            bdl.DataSourceID = "mono";
            Assert.IsNotNull(bdl.Data(), "GetData");

            bdl.DataSource = GetDataSource(1);
            bdl.DataBind();
        }
예제 #2
0
		public void GetData_WithUnexistingDataSourceID ()
		{
			TestBaseDataList bdl = new TestBaseDataList ();
			bdl.Page = new Page ();
			bdl.DataSourceID = "mono";
			bdl.Data ();
		}
예제 #3
0
		public void GetData_WithoutDataSourceID ()
		{
			TestBaseDataList bdl = new TestBaseDataList ();
			Assert.IsNull (bdl.Data (), "GetData");
		}
예제 #4
0
		public void GetData ()
		{
			Test2DataSource ds = new Test2DataSource ();
			ds.ID = "mono";
			TestBaseDataList bdl = new TestBaseDataList ();
			Page p = new Page ();
			bdl.Page = p;
			ds.Page = p;
			p.Controls.Add (ds);
			p.Controls.Add (bdl);
			bdl.DataSourceID = "mono";
			Assert.IsNotNull (bdl.Data (), "GetData");
		}
예제 #5
0
        public void GetData_WithoutDataSourceID()
        {
            TestBaseDataList bdl = new TestBaseDataList();

            Assert.IsNull(bdl.Data(), "GetData");
        }