예제 #1
0
        public void TestRadioButton()
        {
            RadioButton button = new RadioButton("newButton");

            Assert.AreEqual("newButton", button.Name);
            Assert.AreEqual(String.Empty, button.Text);
            Assert.IsTrue(button is Component);

            RadioButton anotherButton = new RadioButton("anotherButton", "someText");
            Assert.AreEqual("someText", anotherButton.Text);
            Assert.AreEqual("anotherButton", anotherButton.Name);

            Assert.AreEqual("radioButton", anotherButton.Type);
            Assert.AreEqual("radioButton(\"anotherButton\")", anotherButton.GetBaseComponentString());
            Assert.AreEqual("getTestFixture().radioButton(\"anotherButton\")", anotherButton.GetQueryString());
            Assert.AreEqual("getTestFixture().prefix(\"prefix\").radioButton(\"anotherButton\")", anotherButton.GetQueryString("prefix(\"prefix\")"));
        }