Documentation

Documentation
V5 Documentation

NCrunch.Framework.CollectControlFlowAttribute

NCrunch.Framework Attribute

Purpose

This attribute controls whether NCrunch RDI should collect control flow for the associated test(s). It can be applied at assembly, fixture or test level.

The attribute overrides the collect control flow config setting.

Declaration In NCrunch.Framework.dll

namespace NCrunch.Framework
{
    public class CollectControlFlowAttribute: Attribute
    {
        public CollectControlFlowAttribute(bool collectControlFlow)
        {
            Value = collectControlFlow;
        }

        public bool Value
        {
            get; private set;
        }
    }
}

You can declare this in your own code if you want NCrunch to use it - or otherwise reference the attribute from NCrunch.Framework.dll.

Usage example

[NCrunch.Framework.CollectControlFlow(false)]
[Test]
public void TestWithoutControlFlow()
{
	...

Recommendations

For more information about control flow, refer to the collect control flow config setting.

Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download