TestCategoryAttribute Constructor

Initializes a new instance of the TestCategoryAttribute class by applying the supplied category to the test.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public Sub New ( _
    testCategory As String _
)
public TestCategoryAttribute(
    string testCategory
)
public:
TestCategoryAttribute(
    String^ testCategory
)
new : 
        testCategory:string -> TestCategoryAttribute
public function TestCategoryAttribute(
    testCategory : String
)

Parameters

  • testCategory
    Type: String

    The test category to be applied.

.NET Framework Security

See Also

Reference

TestCategoryAttribute Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace