Class ExplicitAttribute
ExplicitAttribute marks a test or test fixture so that it will only be run if explicitly executed from the gui or command line or if it is included by use of a filter. The test will not be run simply because an enclosing suite is run.
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public class ExplicitAttribute : NUnitAttribute, IApplyToTest
- Inheritance
-
ExplicitAttribute
- Implements
- Inherited Members
Constructors
ExplicitAttribute()
Default constructor
public ExplicitAttribute()
ExplicitAttribute(string)
Constructor with a reason
public ExplicitAttribute(string reason)
Parameters
reason
stringThe reason test is marked explicit
Methods
ApplyToTest(Test)
Modifies a test by marking it as explicit.
public void ApplyToTest(Test test)
Parameters
test
TestThe test to modify