IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Attribute used to apply a category to a test More...
Public Member Functions | |
CategoryAttribute (string name) | |
Construct attribute for a given category based on a name. The name may not contain the characters ',', '+', '-' or '!'. However, this is not checked in the constructor since it would cause an error to arise at as the test was loaded without giving a clear indication of where the problem is located. The error is handled in NUnitFramework.cs by marking the test as not runnable. More... | |
void | ApplyToTest (Test test) |
Modifies a test by adding a category to it. More... | |
![]() | |
NUnitAttribute () | |
Default constructor More... | |
Protected Member Functions | |
CategoryAttribute () | |
Protected constructor uses the Type name as the name of the category. More... | |
Protected Attributes | |
string | categoryName |
The name of the category More... | |
Properties | |
string | Name [get] |
The name of the category More... | |
Attribute used to apply a category to a test
|
inline |
Construct attribute for a given category based on a name. The name may not contain the characters ',', '+', '-' or '!'. However, this is not checked in the constructor since it would cause an error to arise at as the test was loaded without giving a clear indication of where the problem is located. The error is handled in NUnitFramework.cs by marking the test as not runnable.
name | The name of the category |
|
inlineprotected |
Protected constructor uses the Type name as the name of the category.
|
inline |
Modifies a test by adding a category to it.
test | The test to modify |
Implements NUnit.Framework.Interfaces.IApplyToTest.
References NUnit.Framework.Interfaces.IPropertyBag.Add(), NUnit.Framework.Internal.PropertyNames.Category, NUnit.Framework.Internal.Test.Properties, NUnit.Framework.Internal.Test.RunState, NUnit.Framework.Interfaces.IPropertyBag.Set(), and NUnit.Framework.Internal.PropertyNames.SkipReason.
Referenced by NUnit.Framework.Attributes.ApplyToTestTests.CategoryAttributeSetsCategory(), NUnit.Framework.Attributes.ApplyToTestTests.CategoryAttributeSetsCategoryOnNonRunnableTest(), and NUnit.Framework.Attributes.ApplyToTestTests.CategoryAttributeSetsMultipleCategories().
|
protected |
The name of the category
|
get |
The name of the category