title: Nunit: Testing legacy code (private void) method
body: <p>I have been tasked with building unit tests for a bunch of legacy code. The specific task/goal for the below method is to test that the <code>messageProcessor.ProcessCustomerPhoneContactInfo(currentPhoneContact)</code> method is being called. I am also posting the test stub I have written so far but I would appreciate some direction because I think I am going down a rabbit hole here. How can I fill in the blanks on my test?</p>
  
  <p><strong>Method being tested:</strong></p>
  
  <pre><code>private void logPhoneCallDialog_SaveContact(Contact currentPhoneContact)
      {           
          if (currentPhoneContact != null)
          {
              RefreshRenewalActivity();
  
              if (currentPhoneContact.TypeId == ResultType.TookAppointment)
          }
  
          NotifyServerOfActivity();
  
          ApplyAppointmentFilters();
  
          this.Activate();
  
          var messageProcessor = new MessageProcessor();
          messageProcessor.ProcessCustomerPhoneContactInfo(currentPhoneContact);
      }
  </code></pre>
  
  <p><strong>Test:</strong></p>
  
  <pre><code>[TestFixture, RequiresSTA]
  class BucketBrowserTest
  {
      [Test]
      public void logPhoneCallDialog_SaveContact()
      {
          //Arrange            
  
          //Act
  
          //Assert
      }
  }
  </code></pre>
  
  <p><strong>Method that calls above method</strong></p>
  
  <pre><code>private void ShowPhoneCallLoggerDialog()
      {
          PhoneCallLoggerDialog dialog = new PhoneCallLoggerDialog(CurrentCustomer, CurrentBucket.BucketTypeId);
          dialog.Owner = this;
          dialog.SaveContact += new PhoneCallLoggerDialog.SaveContactHandler(logPhoneCallDialog_SaveContact);
  
          dialog.ShowDialog();
      }
  </code></pre>
  
  <p><strong>Event Handler for calling method</strong></p>
  
  <pre><code>public delegate void SaveContactHandler(PhoneContact currentPhoneContact);
      public event SaveContactHandler SaveContact;
  </code></pre>