public void DataControlField_InitilizeCell()
        {
            DerivedDataControlField field = new DerivedDataControlField();

            field.HeaderText            = "test";
            field.HeaderStyle.BackColor = Color.Red;
            field.HeaderImageUrl        = "test";
            DataControlFieldCell cell = new DataControlFieldCell(field);

            field.InitializeCell(cell, DataControlCellType.Header, DataControlRowState.Normal, 1);
            Assert.AreEqual("test", cell.ContainingField.HeaderText, "HeaderText");
            Assert.AreEqual("test", cell.ContainingField.HeaderImageUrl, "HeaderImageUrl");
            Assert.AreEqual(Color.Red, cell.ContainingField.HeaderStyle.BackColor, "BackColor");
        }
Ejemplo n.º 2
0
		public void DataControlField_InitilizeCell ()
		{
			DerivedDataControlField field = new DerivedDataControlField ();
			field.HeaderText = "test";
			field.HeaderStyle.BackColor = Color.Red;
			field.HeaderImageUrl = "test";
			DataControlFieldCell cell = new DataControlFieldCell (field);
			field.InitializeCell (cell, DataControlCellType.Header, DataControlRowState.Normal, 1);
			Assert.AreEqual ("test", cell.ContainingField.HeaderText, "HeaderText");
			Assert.AreEqual ("test", cell.ContainingField.HeaderImageUrl, "HeaderImageUrl");
			Assert.AreEqual (Color.Red, cell.ContainingField.HeaderStyle.BackColor, "BackColor");
		}