title: Mock static property with moq
body: <p>I am pretty new to use <a href="http://code.google.com/p/moq/" rel="noreferrer">moq</a>. I am into creating some unit test case to <code>HttpModule</code> and everything works fine until I hit a <code>static</code> property as follows           </p>
  
  <pre><code>this.applicationPath = (HttpRuntime.AppDomainAppVirtualPath.Length &gt; 1) ? HttpRuntime.AppDomainAppVirtualPath : String.Empty;
  </code></pre>
  
  <p>I do not know how create mocks for <code>static</code> class and property like <code>HttpRuntime.AppDomainAppVirtualPath</code>. The <code>context</code>, <code>request</code> and <code>response</code> have been mocked well with sample code I get from moq.  I will appreciate if somebody can help me on this.</p>