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"); }
public void AddAt_Deny_Unrestricted() { EmptyControlCollection ec = new EmptyControlCollection(control); ec.AddAt(0, new Control()); }
public void Constructor_Deny_Unrestricted() { EmptyControlCollection ec = new EmptyControlCollection(control); }