Are there any good way to use the Conditional-attribute in the context of testing?
My thoughts were that if you can do this:
[Conditional("Debug")]
public void DebugMethod()
{
//...
}
Maybe you could have some use for: (?)
[Conditional("Test")]
public void TestableMethod()
{
//...
}
I don’t see a use when there’s a better alternative: Test Projects.
Use NUnit or MSTest to achieve this functionality in a more graceful way.