Exemplo n.º 1
0
        public void TestSpinner()
        {
            Spinner spinner = new Spinner("newSpinner");

            Assert.AreEqual("newSpinner", spinner.Name);
            Assert.AreEqual(String.Empty, spinner.Text);
            Assert.IsTrue(spinner is Component);

            Spinner anotherSpinner = new Spinner("anotherSpinner", "someText");
            Assert.AreEqual("someText", anotherSpinner.Text);
            Assert.AreEqual("anotherSpinner", anotherSpinner.Name);

            Assert.AreEqual("spinner", anotherSpinner.Type);
            Assert.AreEqual("spinner(\"anotherSpinner\")", anotherSpinner.GetBaseComponentString());
            Assert.AreEqual("getTestFixture().spinner(\"anotherSpinner\")", anotherSpinner.GetQueryString());
            Assert.AreEqual("getTestFixture().prefix(\"prefix\").spinner(\"anotherSpinner\")", anotherSpinner.GetQueryString("prefix(\"prefix\")"));
        }