Unknown constant SCALABILITYTESTING
<p>I have some strange code in a web service.</p>

<pre><code>#if SCALABILITYTESTING
Random r = new Random();
#endif
</code></pre>

<p>I've done a few searches on Google but found nothing useful. The web service is written in C#. The project it is in, has Microsoft Unit Tests.</p>

<p>Obviously, it's saying if this variable is  true then create a new random number, and my guess is that when I run the Microsoft Unit tests then this is triggered.</p>

<p><strong>I've not seen anything like this before so I'd like to know what it is.</strong></p>

<p>The only other clue I have is the following bit of code, which is at the very top of the page.</p>

<pre><code>//#define SCALABILITYTESTING
#define SOAPSECURITY
#define SOFTWAREFEATURES
</code></pre>

<p>Visual Studio highlights <code>#define</code>.</p>

<p>I don't know if the stackoverflow question below is related and my guess is that this is something similar to the DEBUG and TRACE constants.</p>

<p><a href="http://stackoverflow.com/questions/3330511/define-new-compile-time-constant-in-c-for-if">Define new compile-time constant in C# (for #if)</a></p>

<p>EDIT
I've found these links which seem related.<br>
<a href="http://msdn.microsoft.com/en-us/library/yt3yck0x.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/yt3yck0x.aspx</a><br>
<a href="http://msdn.microsoft.com/en-us/library/4y6tbswk.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/4y6tbswk.aspx</a>  </p>
