title: Use #IF directive to detect unit test
body: <p>I have this specific call in my code and I found the config needs to be different when running the full app as to when I'm testing using an integration unit test.</p>
  
  <p>Is there a way to check for a call from a unit test using the <code>#if</code> directive?</p>
  
  <pre><code>#if TestMethod
  ...do this config
  #else
  ...do this config
  #endif
  </code></pre>
  
  <p>Maybe someway to detect an attribute on the unit test function?</p>