Exemple #1
0
        public void Separator()
        {
            TestDataListItem dli = new TestDataListItem(-1, ListItemType.Separator);

            Assert.AreEqual(-1, dli.ItemIndex, "ItemIndex");
            Assert.AreEqual(ListItemType.Separator, dli.ItemType, "ItemType");

            DataItemContainer(dli, -1);
            BaseTests(dli);

            dli.SetType(ListItemType.AlternatingItem);
            Assert.AreEqual(ListItemType.AlternatingItem, dli.ItemType, "SetItemType");
        }
Exemple #2
0
        public void Pager()
        {
            TestDataListItem dli = new TestDataListItem(0, ListItemType.Pager);

            Assert.AreEqual(0, dli.ItemIndex, "ItemIndex");
            Assert.AreEqual(ListItemType.Pager, dli.ItemType, "ItemType");

            DataItemContainer(dli, 0);
            BaseTests(dli);

            dli.SetType(ListItemType.SelectedItem);
            Assert.AreEqual(ListItemType.SelectedItem, dli.ItemType, "SetItemType");
        }
Exemple #3
0
        public void SelectedItem()
        {
            TestDataListItem dli = new TestDataListItem(1, ListItemType.SelectedItem);

            Assert.AreEqual(1, dli.ItemIndex, "ItemIndex");
            Assert.AreEqual(ListItemType.SelectedItem, dli.ItemType, "ItemType");

            DataItemContainer(dli, 1);
            BaseTests(dli);

            dli.SetType(ListItemType.Separator);
            Assert.AreEqual(ListItemType.Separator, dli.ItemType, "SetItemType");
        }
Exemple #4
0
        public void AlternatingItem()
        {
            TestDataListItem dli = new TestDataListItem(0, ListItemType.AlternatingItem);

            Assert.AreEqual(0, dli.ItemIndex, "ItemIndex");
            Assert.AreEqual(ListItemType.AlternatingItem, dli.ItemType, "ItemType");

            DataItemContainer(dli, 0);
            BaseTests(dli);

            dli.SetType(ListItemType.EditItem);
            Assert.AreEqual(ListItemType.EditItem, dli.ItemType, "SetItemType");
        }
Exemple #5
0
        public void Footer()
        {
            TestDataListItem dli = new TestDataListItem(Int32.MinValue, ListItemType.Footer);

            Assert.AreEqual(Int32.MinValue, dli.ItemIndex, "ItemIndex");
            Assert.AreEqual(ListItemType.Footer, dli.ItemType, "ItemType");

            DataItemContainer(dli, Int32.MinValue);
            BaseTests(dli);

            dli.SetType(ListItemType.Header);
            Assert.AreEqual(ListItemType.Header, dli.ItemType, "SetItemType");
        }
Exemple #6
0
		public void AlternatingItem ()
		{
			TestDataListItem dli = new TestDataListItem (0, ListItemType.AlternatingItem);
			Assert.AreEqual (0, dli.ItemIndex, "ItemIndex");
			Assert.AreEqual (ListItemType.AlternatingItem, dli.ItemType, "ItemType");

			DataItemContainer (dli, 0);
			BaseTests (dli);

			dli.SetType (ListItemType.EditItem);
			Assert.AreEqual (ListItemType.EditItem, dli.ItemType, "SetItemType");
		}
Exemple #7
0
		public void Separator ()
		{
			TestDataListItem dli = new TestDataListItem (-1, ListItemType.Separator);
			Assert.AreEqual (-1, dli.ItemIndex, "ItemIndex");
			Assert.AreEqual (ListItemType.Separator, dli.ItemType, "ItemType");

			DataItemContainer (dli, -1);
			BaseTests (dli);

			dli.SetType (ListItemType.AlternatingItem);
			Assert.AreEqual (ListItemType.AlternatingItem, dli.ItemType, "SetItemType");
		}
Exemple #8
0
		public void SelectedItem ()
		{
			TestDataListItem dli = new TestDataListItem (1, ListItemType.SelectedItem);
			Assert.AreEqual (1, dli.ItemIndex, "ItemIndex");
			Assert.AreEqual (ListItemType.SelectedItem, dli.ItemType, "ItemType");

			DataItemContainer (dli, 1);
			BaseTests (dli);

			dli.SetType (ListItemType.Separator);
			Assert.AreEqual (ListItemType.Separator, dli.ItemType, "SetItemType");
		}
Exemple #9
0
		public void Pager ()
		{
			TestDataListItem dli = new TestDataListItem (0, ListItemType.Pager);
			Assert.AreEqual (0, dli.ItemIndex, "ItemIndex");
			Assert.AreEqual (ListItemType.Pager, dli.ItemType, "ItemType");

			DataItemContainer (dli, 0);
			BaseTests (dli);

			dli.SetType (ListItemType.SelectedItem);
			Assert.AreEqual (ListItemType.SelectedItem, dli.ItemType, "SetItemType");
		}
Exemple #10
0
		public void Footer ()
		{
			TestDataListItem dli = new TestDataListItem (Int32.MinValue, ListItemType.Footer);
			Assert.AreEqual (Int32.MinValue, dli.ItemIndex, "ItemIndex");
			Assert.AreEqual (ListItemType.Footer, dli.ItemType, "ItemType");

			DataItemContainer (dli, Int32.MinValue);
			BaseTests (dli);

			dli.SetType (ListItemType.Header);
			Assert.AreEqual (ListItemType.Header, dli.ItemType, "SetItemType");
		}