예제 #1
0
        public void ModalFormDoesntShow()
        {
            ModalMultiForm f = new ModalMultiForm();

            f.Show();
            ModalFormHandler = handler;
            f.Close();
            Verify();
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            int i = int.Parse(myLabel.Text) + 1;

            myLabel.Text = i.ToString();

            ModalMultiForm newForm = new ModalMultiForm();

            newForm.Name = Name + "-" + (i - 1);
            newForm.Text = newForm.Name;
            newForm.ShowDialog();
        }
예제 #3
0
        public void TestModalForm()
        {
            ExpectModal("Form-0", new ModalFormActivated(ClickHandler));

            ModalMultiForm form = new ModalMultiForm();

            form.Show();

            ButtonTester buttonOne = new ButtonTester("myButton", "Form");

            buttonOne.Click();
        }
예제 #4
0
        public void TestModalForm()
        {
            ModalMultiForm form = new ModalMultiForm();

            form.Show();

            ButtonTester buttonOne = new ButtonTester("myButton", "Form");

            ModalFormHandler = handler;
            buttonOne.Click();
            form.Close();
            Verify();
        }