Partilhar via


TestCategoryAttribute.TestCategories Property

Gets the test category that has been applied to the test.

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

Syntax

'Declaration
Public Overrides ReadOnly Property TestCategories As IList(Of String)
public override IList<string> TestCategories { get; }
public:
virtual property IList<String^>^ TestCategories {
    IList<String^>^ get () override;
}
abstract TestCategories : IList<string> with get 
override TestCategories : IList<string> with get
override function get TestCategories () : IList<String>

Property Value

Type: IList<String>
Returns the test category that has been applied to the test.

.NET Framework Security

See Also

Reference

TestCategoryAttribute Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace