title: How can I mock this static method
body: <p>I have this code:</p>
  
  <pre><code>public static bool IsValidVoucher(string id)
  {
      //read tsv files
      var temp1 = AppData.GetAppData("stringval");            
      // code that need to be tested        
      return true;        
  }
  </code></pre>
  
  <p>And I like to create unit test, but how can I mock <code>AppData.GetAppData("stringval")</code> to whatever I want the value is, so I can test the rest of code.</p>
  
  <p>The AppData class is:</p>
  
  <pre><code>public class AppData
  {
      public static object GetAppData(string name)
      {
          //...
      }
  }
  </code></pre>