Example #1
0
        public void TestCheckBox()
        {
            CheckBox box = new CheckBox("newBox");

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

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

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