public void TestToolBar() { ToolBar bar = new ToolBar("newBar"); Assert.AreEqual("newBar", bar.Name); Assert.AreEqual(String.Empty, bar.Text); Assert.IsTrue(bar is Component); ToolBar anotherBar = new ToolBar("anotherBar", "someText"); Assert.AreEqual("someText", anotherBar.Text); Assert.AreEqual("anotherBar", anotherBar.Name); Assert.AreEqual("toolBar", anotherBar.Type); Assert.AreEqual("toolBar(\"anotherBar\")", anotherBar.GetBaseComponentString()); Assert.AreEqual("getTestFixture().toolBar(\"anotherBar\")", anotherBar.GetQueryString()); Assert.AreEqual("getTestFixture().prefix(\"prefix\").toolBar(\"anotherBar\")", anotherBar.GetQueryString("prefix(\"prefix\")")); }