Tester for System.Web.UI.HtmlControls.HtmlSelect
Inheritance: HtmlControlTester
Ejemplo n.º 1
0
 /// <summary>
 /// For internal use.  May change in future revisions.
 /// </summary>
 public ListItemCollectionTester(HtmlTagTester[] optionList, HtmlSelectTester container)
 {
     foreach (HtmlTagTester option in optionList)
     {
         InnerList.Add(new ListItemTester(option, container));
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// For internal use.  May change in future revisions.
 /// </summary>
 public ListItemCollectionTester(HtmlTagTester[] optionList, HtmlSelectTester container)
 {
     foreach (HtmlTagTester option in optionList)
     {
         InnerList.Add(new ListItemTester(option, container));
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// For internal use.  May change in future revisions.
 /// </summary>
 public ListItemTester(HtmlTagTester option, HtmlSelectTester container)
 {
     this.container = container;
     Element = option;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// For internal use.  May change in future revisions.
 /// </summary>
 public ListItemTester(HtmlTagTester option, HtmlSelectTester container)
 {
     this.container = container;
     Element        = option;
 }
Ejemplo n.º 5
0
 private void AssertItemsSelected(HtmlSelectTester tester, bool one, bool two, bool three, bool four, bool five)
 {
     Assert.AreEqual(one, tester.Items[0].Selected, "one in " + tester.Description);
     Assert.AreEqual(two, tester.Items[1].Selected, "two in " + tester.Description);
     Assert.AreEqual(three, tester.Items[2].Selected, "three in " + tester.Description);
     Assert.AreEqual(four, tester.Items[3].Selected, "four in " + tester.Description);
     Assert.AreEqual(five, tester.Items[4].Selected, "five in " + tester.Description);
 }
Ejemplo n.º 6
0
        protected override void SetUp()
        {
            def = new HtmlSelectTester("default");
            nonDefault = new HtmlSelectTester("nonDefault");
            singleSelect = new HtmlSelectTester("singleSelect");
            submit = new LinkButtonTester("submit");

            Browser.GetPage(BaseUrl + "/HtmlTester/HtmlSelectTestPage.aspx");
        }