Example #1
0
        public void testCreationSequence()
        {
            ConfInt         fValue   = new ConfInt("test/fValue", 10, 10, 100);
            test_ConfigGUI  gui2     = new test_ConfigGUI();
            TrackBarWrapper wrapper3 = new TrackBarWrapper(gui2.trackBar3, "test/fValue");

            gui2.Show();

            AssertEquals(gui2.trackBar3.Value, fValue.Value);

            TextBoxWrapper wrapper = new TextBoxWrapper(gui2.textBox4, "test/aValue");
            ConfString     aValue  = new ConfString("test/aValue", "aaa");

            AssertEquals(gui2.textBox4.Text, "aaa");

            ConfString     bValue   = new ConfString("test/bValue", "bbb");
            TextBoxWrapper wrapper2 = new TextBoxWrapper(gui2.textBox5, "test/bValue");

            AssertEquals(gui2.textBox5.Text, "bbb");

            fValue.Unregister();
            aValue.Unregister();
            bValue.Unregister();

            gui2.Dispose();
        }
Example #2
0
        protected void initForTesting()
        {
            textBoxWrapper1 = new TextBoxWrapper(textBox1, "test/aCount");
            textBoxWrapper2 = new TextBoxWrapper(textBox2, "test/aCount");

            trackBarWrapper1 = new TrackBarWrapper(trackBar1, "test/bCount");

            radioGroupWrapper1 = new RadioGroupWrapper("test/cCount");
            radioGroupWrapper1.AddRadioButton(radioButton1);
            radioGroupWrapper1.AddRadioButton(radioButton2);
            radioGroupWrapper1.AddRadioButton(radioButton3);

            radioGroupWrapper2 = new RadioGroupWrapper("test/cCount");
            radioGroupWrapper2.AddRadioButton(radioButton4);
            radioGroupWrapper2.AddRadioButton(radioButton5);
            radioGroupWrapper2.AddRadioButton(radioButton6);
        }