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); }
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); }
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); }
public void ToggleEnabled() { main.button1_Click(null, null); }