DoGetItemStyle() public method

public DoGetItemStyle ( ListItemType itemType, int repeatIndex ) : System.Web.UI.WebControls.Style
itemType ListItemType
repeatIndex int
return System.Web.UI.WebControls.Style
Example #1
0
        public void Defaults()
        {
            CheckBoxListPoker c = new CheckBoxListPoker();

            Assert.AreEqual(c.CellPadding, -1, "A1");
            Assert.AreEqual(c.CellSpacing, -1, "A2");
            Assert.AreEqual(c.RepeatColumns, 0, "A3");
            Assert.AreEqual(c.RepeatDirection,
                            RepeatDirection.Vertical, "A4");
            Assert.AreEqual(c.RepeatLayout,
                            RepeatLayout.Table, "A5");
            Assert.AreEqual(c.TextAlign, TextAlign.Right, "A6");
            Assert.AreEqual(false, c.HasFooter, "HasFooter");
            Assert.AreEqual(false, c.HasHeader, "HasHeader");
            Assert.AreEqual(false, c.HasSeparators, "HasSeparators");
            Assert.AreEqual(0, c.RepeatedItemCount, "RepeatedItemCount");
            Assert.AreEqual(null, c.DoGetItemStyle(ListItemType.Item, 0), "GetItemStyle");
        }
		public void Defaults ()
		{
			CheckBoxListPoker c = new CheckBoxListPoker ();

			Assert.AreEqual (c.CellPadding, -1, "A1");
			Assert.AreEqual (c.CellSpacing, -1, "A2");
			Assert.AreEqual (c.RepeatColumns, 0, "A3");
			Assert.AreEqual (c.RepeatDirection,
					RepeatDirection.Vertical, "A4");
			Assert.AreEqual (c.RepeatLayout,
					RepeatLayout.Table, "A5");
			Assert.AreEqual (c.TextAlign, TextAlign.Right, "A6");
			Assert.AreEqual (false, c.HasFooter, "HasFooter");
			Assert.AreEqual (false, c.HasHeader, "HasHeader");
			Assert.AreEqual (false, c.HasSeparators, "HasSeparators");
			Assert.AreEqual (0, c.RepeatedItemCount, "RepeatedItemCount");
			Assert.AreEqual (null, c.DoGetItemStyle (ListItemType.Item, 0), "GetItemStyle");
		}