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(); }
public void GetData_WithUnexistingDataSourceID () { TestBaseDataList bdl = new TestBaseDataList (); bdl.Page = new Page (); bdl.DataSourceID = "mono"; bdl.Data (); }
public void GetData_WithoutDataSourceID () { TestBaseDataList bdl = new TestBaseDataList (); Assert.IsNull (bdl.Data (), "GetData"); }
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"); }
public void GetData_WithoutDataSourceID() { TestBaseDataList bdl = new TestBaseDataList(); Assert.IsNull(bdl.Data(), "GetData"); }