private void button2_Click(object sender, EventArgs e) { myConnection.entry(this.forum.Text); string Temp = textBox1.Text; Int64 IntTemp = Convert.ToInt64(Temp); if (myConnection.EmailConfirm(IntTemp, this.userName.Text)) { MessageBox.Show("ברכותי הינך חבר רשום ומאושר"); panel1.Visible = false; } else { MessageBox.Show("הקוד שגוי אנא נסה בשנית"); } }
public void TestEmailConfirm() //need to return true only to values { Assert.IsTrue(forum.EmailConfirm(1, "")); Assert.IsFalse(forum.EmailConfirm(2, "")); }