title: Unit testing of WPF application
body: <p>Here is a part of a code of a simple WPF application: 3 textboxes, a dropdownList and a button. By clicking a button, there will be checking of input values. </p>
  
  <pre><code>   private void Button_Click_1(object sender, RoutedEventArgs e)
      {
          if (textBox1.Text.Length&gt;127)
              throw new ArgumentException();
          if (string.IsNullOrEmpty(textBox2.Text))
              errorsList.Add("You must to fill out textbox2");
          else if (string.IsNullOrEmpty(textBox3.Text))
             errorsList.Add("You must to fill out textbox3"); 
         else if
          {
              Regex regex = new Regex(@".........");
              Match match = regex.Match(emailTxt.Text);
              if (!match.Success)
                  errorsList.Add("e-mail is inlvalid");
          }
          //.....
       }
  </code></pre>
  
  <p>I have to test it by using any Unit testing Framework. I wonder is it possible to do Unit testing here? I guess it is not, right?</p>