Using the DEBUG configuration, I can switch behaviour on and off using this type of syntax:
#if DEBUG
Console.WriteLine("Debug");
#else
Console.WriteLine("Not Debug");
#endif
However, if I set up a different configuration, say: TEST then this doesn't work:
#if TEST
Console.WriteLine("Test");
#else
Console.WriteLine("Not Test");
#endif
Is there a way to check these?
Yes you can use different configurations. DEBUG symbol is generated automatically if you choose Debug configuration in your configuration manager. You can check it. Go to Your project -> Properties -> Build -> Define DEBUG constant
If you need to use additional constant just enter your own in Conditional compilation symbols.
Steps for your case:
Run your code and enjoy :)