title: Is it possible to set this static private member of a static class with reflection?
body: <p>I have a <code>static class</code> with <code>static private readonly</code> member that's set via the class's <code>static constructor</code>.  Below is a simplified example.</p>
  
  <pre><code>public static class MyClass
  {
      private static readonly string m_myField;
  
      static MyClass()
      {
          // logic to determine and set m_myField;
      }
  
      public static string MyField
      {
          get
          {
              // More logic to validate m_myField and then return it.
          }
      }
  }
  </code></pre>
  
  <p>Since the above class is a static class, I cannot create an instance of it in order to utilize pass such into a <code>FieldInfo.GetValue()</code> call to retrieve and later set the value of <code>m_myField</code>.  Is there a way I'm not aware to either get use the FieldInfo class to get and set the value on a static class or is the only option is to refactor the class I've been asked to unit test for?</p>