I have some code that I want to run when using the NUnit standalone runner but should not be run when testing using NCrunch. I need to test if NCrunch is running but I don't want to include the NCrunch DLLs as part of the project.
Does NCrunch set any flags that could be accessed without referencing the NCrunch assembly, for example setting a value in the System.Threading.Thread.CurrentThread.ExecutionContext?
Remco NCrunch Developer
#3530
14 Jan 2013 22:32 UTC
There are several ways you can handle this. Generally I would recommend the '#if NCRUNCH' override in this situation.
Excellent, thanks for the quick reply.
Post a reply
Log in to reply.