Example #1
0
        public void TestPanel()
        {
            Panel panel = new Panel("newPanel");

            Assert.AreEqual("newPanel", panel.Name);
            Assert.AreEqual(String.Empty, panel.Text);
            Assert.IsTrue(panel is Component);

            Panel anotherPanel = new Panel("anotherPanel", "someText");
            Assert.AreEqual("someText", anotherPanel.Text);
            Assert.AreEqual("anotherPanel", anotherPanel.Name);

            Assert.AreEqual("panel", anotherPanel.Type);
            Assert.AreEqual("panel(\"anotherPanel\")", anotherPanel.GetBaseComponentString());
            Assert.AreEqual("getTestFixture().panel(\"anotherPanel\")", anotherPanel.GetQueryString());
            Assert.AreEqual("getTestFixture().prefix(\"prefix\").panel(\"anotherPanel\")", anotherPanel.GetQueryString("prefix(\"prefix\")"));
        }