I have a unit test that tests if an Exception is throw, but this Exception is only throw in Debug mode (via the [Conditional("DEBUG")] Attribute). If I run this test in Release mode, it fails. I tried to apply the same Attribute on the test but it's no taken into account.
How can I exclude a test in Release mode? Does it even make sense to run unit tests in Release mode or should I stick to Debug mode?