Ejemplo n.º 1
0
        public void TestTab()
        {
            Tab tab = new Tab("newTab");

            Assert.AreEqual("newTab", tab.Name);
            Assert.AreEqual(String.Empty, tab.Text);
            Assert.IsTrue(tab is Component);

            Tab anotherTab = new Tab("anotherTab", "someText");
            Assert.AreEqual("someText", anotherTab.Text);
            Assert.AreEqual("anotherTab", anotherTab.Name);

            Assert.AreEqual("tab", anotherTab.Type);
            Assert.AreEqual("tab(\"anotherTab\")", anotherTab.GetBaseComponentString());
            Assert.AreEqual("getTestFixture().tab(\"anotherTab\")", anotherTab.GetQueryString());
            Assert.AreEqual("getTestFixture().prefix(\"prefix\").tab(\"anotherTab\")", anotherTab.GetQueryString("prefix(\"prefix\")"));
        }