Exemplo n.º 1
0
		public void AddAt_Deny_Unrestricted ()
		{
			EmptyControlCollection ec = new EmptyControlCollection (control);
			ec.AddAt (0, new Control ());
		}
Exemplo n.º 2
0
		public void BulletedList_DefaultProperties ()
		{

			PokerBulletedList b = new PokerBulletedList ();
			Assert.AreEqual (0, b.StateBag.Count, "ViewState.Count");
			Assert.AreEqual (string.Empty, b.BulletImageUrl, "BulletImageUrl");
			Assert.AreEqual (BulletStyle.NotSet, b.BulletStyle, "BulletStyle");
			EmptyControlCollection c = new EmptyControlCollection (b);
			EmptyControlCollection c2 = (EmptyControlCollection) b.Controls;
			Assert.AreEqual ("System.Web.UI.EmptyControlCollection", b.Controls.GetType ().ToString (), "Controls");
			Assert.AreEqual ("Text", b.DisplayMode.ToString (), "DisplayMode");
			Assert.AreEqual (1, b.FirstBulletNumber, "FirstBulletNumber");
			Assert.AreEqual (-1, b.SelectedIndex, "SelectedIndex");
			Assert.AreEqual (null, b.SelectedItem, "SelectedItem");
			Assert.AreEqual (string.Empty, b.Target, "Target");
		}
Exemplo n.º 3
0
		public void Constructor_Deny_Unrestricted ()
		{
			EmptyControlCollection ec = new EmptyControlCollection (control);
		}