Compartilhar via


TestCategoryAttribute Classe

Definição

Atributo TestCategory; usado para especificar a categoria de um teste de unidade.

public ref class TestCategoryAttribute sealed : Microsoft::VisualStudio::TestTools::UnitTesting::TestCategoryBaseAttribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true)]
public sealed class TestCategoryAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.TestCategoryBaseAttribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true)]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class TestCategoryAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.TestCategoryBaseAttribute
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)]
public sealed class TestCategoryAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.TestCategoryBaseAttribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true)>]
type TestCategoryAttribute = class
    inherit TestCategoryBaseAttribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true)>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type TestCategoryAttribute = class
    inherit TestCategoryBaseAttribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)>]
type TestCategoryAttribute = class
    inherit TestCategoryBaseAttribute
Public NotInheritable Class TestCategoryAttribute
Inherits TestCategoryBaseAttribute
Herança
TestCategoryAttribute
Atributos

Construtores

Nome Description
TestCategoryAttribute(String)

Inicializa uma nova instância da TestCategoryAttribute classe e aplica a categoria ao teste.

Propriedades

Nome Description
TestCategories

Obtém as categorias de teste que foram aplicadas ao teste.

Aplica-se a