CREATIVE CODE DESIGN

Updated 346 days ago
  • ID: 11825558/139
Move implementation into a method not marked as [TestMethod] into a new method marked with Conditional("DEBUG") and call it from the [TestMethod]... Sad but true and by design. With Conditional("DEBUG"), the compiler will merely ‘void out' calls to the method marked with that attribute. The method itself is still compiled in. Thus, when mstest looks for test to run, it finds all of the Conditional("DEBUG") methods regardless of build configuration... The effect of this fact is that unit test execution cannot be conditionalized for Release Mode. Hence the unit tests will still execute and fail, if you have debug-specific configuration in the implementation.
  • 0
  • 0
Interest Score
1
HIT Score
0.00
Domain
creativecodedesign.com

Actual
www.creativecodedesign.com

IP
67.20.76.157

Status
OK

Category
Other
0 comments Add a comment