title: Test a public method which calls a private method using NUnit
body: <p>I have a public method in a class that internally calls a particular private method within that class. It looks something like this :</p>
  
  <pre><code>public class MyClass : IMyClassInterface
  {
      public List&lt;int&gt; MyMethod(int a, int b)
      {
          MyPrivateMethod(a, b, ref varList, ref someVal);
      }
      private void MyPrivateMethod(int a, int b, ref List&lt;int&gt; varList, ref double someval)
      {
      }
  }
  </code></pre>
  
  <p>Now, I basically want to test this public method using NUnit. I am using NMock 2.0 for mocking. How do I do it? Since, it internally calls this private method which I do not want to make public. Or is there a way to do it if I turn the private method to protected instead?</p>