Exemplo n.º 1
0
        public void TestComboBox()
        {
            ComboBox box = new ComboBox("newBox");

            Assert.AreEqual("newBox", box.Name);
            Assert.AreEqual(String.Empty, box.Text);
            Assert.IsTrue(box is Component);

            ComboBox anotherBox = new ComboBox("anotherBox", "someText");
            Assert.AreEqual("someText", anotherBox.Text);
            Assert.AreEqual("anotherBox", anotherBox.Name);

            Assert.AreEqual("comboBox", anotherBox.Type);
            Assert.AreEqual("comboBox(\"anotherBox\")", anotherBox.GetBaseComponentString());
            Assert.AreEqual("getTestFixture().comboBox(\"anotherBox\")", anotherBox.GetQueryString());
            Assert.AreEqual("getTestFixture().prefix(\"prefix\").comboBox(\"anotherBox\")", anotherBox.GetQueryString("prefix(\"prefix\")"));
        }