button1_Click() private method

private button1_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
コード例 #1
0
        public void OsszeadasTest()
        {
            // arrange
            f1.textBox1.Text = "2";
            f1.textBox2.Text = "3";
            object    o  = new object();
            EventArgs ea = new EventArgs();

            // act
            f1.button1_Click(o, ea);

            // assert
            Assert.Equal("5", f1.label1.Text);
        }
コード例 #2
0
        public void Testbutton1_Click()
        {
            //Tipo de teste: Caixa preta
            //testando o método button1_Click com parâmetros válidos
            Form1     _form1Test  = new Form1();
            Object    _senderTest = new Object();
            EventArgs _eventTest  = new EventArgs();

            _form1Test.button1_Click(_senderTest, _eventTest);
        }
コード例 #3
0
        public void IntroducerePacient_Forma1()
        {
            Form1     FR1 = new Form1();
            object    e   = null;
            EventArgs x   = null;

            FR1.textBoxNume.Text     = "Maricica";
            FR1.textBoxPrenume.Text  = "DinTest";
            FR1.textBoxVarsta.Text   = "44";
            FR1.textBoxPuls.Text     = "62";
            FR1.textBoxTensiune.Text = "93";
            FR1.textBoxInfo.Text     = "Sistem TEST DO NOT REPLY";
            FR1.button1_Click(e, x);
        }
コード例 #4
0
ファイル: CBase.cs プロジェクト: Rapt0rs/NotepadPP
 public void ToggleEnabled()
 {
     main.button1_Click(null, null);
 }