Using the DEBUG configuration, I can enable and disable the behavior using this type of syntax:
#if DEBUG
Console.WriteLine("Debug");
#else
Console.WriteLine("Not Debug");
#endif
However, if I configure a different configuration, say: TEST, then this will not work:
#if TEST
Console.WriteLine("Test");
#else
Console.WriteLine("Not Test");
#endif
Is there any way to test them?
source
share