Condividi tramite


TestCategoryAttribute Classe

Definizione

Attributo TestCategory; utilizzato per specificare la categoria di uno unit test.

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
Ereditarietà
TestCategoryAttribute
Attributi

Costruttori

Nome Descrizione
TestCategoryAttribute(String)

Inizializza una nuova istanza della TestCategoryAttribute classe e applica la categoria al test.

Proprietà

Nome Descrizione
TestCategories

Ottiene le categorie di test applicate al test.

Si applica a