How do You write a code for Unit Testing winform keypress and Button Events : private void Phonenumber_KeyPress(object sender, KeyPressEventArgs e)

        {
            char ch = e.KeyChar;
            if (!char.IsDigit(ch) && (ch != 8))
            {
                e.Handled = true;
            }
        }private void Submit_Click(object sender, EventArgs e)
        {
        //sql commands
         messagebox.show("data added successfully");

         }