title: What is the difference between PrivateObject vs PrivateType in C#?
body: <p>I was looking for approaches that could be used to access a static class which contains private static methods to unit test.</p>
  
  <p>I came across <code>PrivateObject</code> and <code>PrivateType</code>, I do not understand what the difference between them is, and how you would decided to use either one.</p>
  
  <p>BusinessLogic</p>
  
  <pre><code>public static Class BarLogic(){
    private static void FooBar(){
         //do something here
     }
  }
  </code></pre>
  
  <p>API</p>
  
  <pre><code>public class FooService(){
  
  BarLogic.FooBar();
  
  }
  </code></pre>