title: Programmatically check the build configuration
body: <p>Using the DEBUG configuration, I can switch behaviour on and off using this type of syntax:</p>
  
  <pre><code>#if DEBUG
      Console.WriteLine("Debug");
  #else
      Console.WriteLine("Not Debug");
  #endif
  </code></pre>
  
  <p>However, if I set up a different configuration, say: TEST then this doesn't work:</p>
  
  <pre><code>#if TEST
      Console.WriteLine("Test");
  #else
      Console.WriteLine("Not Test");
  #endif
  </code></pre>
  
  <p>Is there a way to check these?</p>