KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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?
Tags (comma-separated)
Save Edits
Cancel