title: C# - how to test extension methods?
body: <p>I have created this C# extension method for a <code>Person</code> class:</p>
  
  <pre><code>public static class PersonExtensions {
      public static void Rename(this Person person, String newName) {
          person.Name = newName;
      }
  }
  </code></pre>
  
  <p>How would I unit test this method? I have tried it, but the <code>Rename</code> method is not available from the <code>PersonAccessor</code> object.</p>
  
  <p>Error was "the private-accessor for Rename was not found"</p>
  
  <p>When I try PersonExtensions_Accessor.Rename(somePerson, newName), it says "there are some invalid arguments"</p>