Indicates that a test should only be run explicitly.

Namespace:  MbUnit.Framework
Assembly:  MbUnit (in MbUnit.dll) Version: 3.2.0.0 (3.2.528.0)

Syntax

C#
public class ExplicitAttribute : TestDecoratorPatternAttribute
Visual Basic (Declaration)
Public Class ExplicitAttribute _
	Inherits TestDecoratorPatternAttribute

Remarks

The test will still appear in the test tree but it will not run and it will not appear in the test results unless it is explicitly selected for execution.

A test is considered to be explicitly selected when the filter used to run the tests matches the test or its descendants but none of its ancestors. For example, if the filter matches a test case but not its containing test fixture then the test case will be deemed to be explicitly selected. Otherwise the test case will be implicitly selected by virtue of the fact that the filter matched one of its ancestors.

This attribute can be used to exclude from normal execution any tests that are particularly expensive or require manual supervision by an operator.

Inheritance Hierarchy

See Also