TestCategoryAttribute 构造函数

通过向测试应用提供的类别来初始化 TestCategoryAttribute 类的新实例。

命名空间:  Microsoft.VisualStudio.TestTools.UnitTesting
程序集:  Microsoft.VisualStudio.QualityTools.UnitTestFramework(在 Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll 中)

语法

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

参数

  • testCategory
    类型:System.String
    要应用的测试类别。

.NET Framework 安全性

请参见

参考

TestCategoryAttribute 类

Microsoft.VisualStudio.TestTools.UnitTesting 命名空间