title: How to test using conditional defines if the application is Firemonkey one?
body: <p>I use DUnit. It has an VCL GUITestRunner and a console TextTestRunner.</p>
  
  <p>In an unit used by both Firemonkey and VCL Forms applications I would like to achieve the following:</p>
  
  <ol>
  <li>If Firemonkey app, if target is OS X, and executing on OS X -> TextTestRunner</li>
  <li>If Firemonkey app, if target is 32-bit Windows, executing on Windows -> AllocConsole + TextTestRunner</li>
  <li>If VCL app -> GUITestRunner</li>
  </ol>
  
  <p></p>
  
  <pre><code>{$IFDEF MACOS}
  TextTestRunner.RunRegisteredTests;      // Case 1
  {$ELSE}
     {$IFDEF MSWINDOWS}
     AllocConsole;
     {$ENDIF}
     {$IFDEF FIREMONKEY_APP}              // Case 2 &lt;--------------- HERE
     TextTestRunner.RunRegisteredTests;  
     {$ELSE}                              // Case 3
     GUITestRunner.RunRegisteredTests;
     {$IFEND}
  {$ENDIF}
  </code></pre>
  
  <p>Which is the best way to make Case 2 work?</p>