예제 #1
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);
 }
예제 #2
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");
        }