Sdílet prostřednictvím


DynamicDataAttribute Třída

Definice

Atribut pro definování dynamických dat pro testovací metodu

public ref class DynamicDataAttribute sealed : Attribute, Microsoft::VisualStudio::TestTools::UnitTesting::ITestDataSource
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)]
public sealed class DynamicDataAttribute : Attribute, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSource
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)]
public sealed class DynamicDataAttribute : Attribute, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSource, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSourceIgnoreCapability, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSourceUnfoldingCapability
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)]
public sealed class DynamicDataAttribute : Attribute, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSource, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSourceUnfoldingCapability
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true, Inherited=false)]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class DynamicDataAttribute : Attribute, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSource, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSourceIgnoreCapability
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true, Inherited=false)]
public sealed class DynamicDataAttribute : Attribute, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSource, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSourceIgnoreCapability
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)>]
type DynamicDataAttribute = class
    inherit Attribute
    interface ITestDataSource
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)>]
type DynamicDataAttribute = class
    inherit Attribute
    interface ITestDataSource
    interface ITestDataSourceUnfoldingCapability
    interface ITestDataSourceIgnoreCapability
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)>]
type DynamicDataAttribute = class
    inherit Attribute
    interface ITestDataSource
    interface ITestDataSourceUnfoldingCapability
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true, Inherited=false)>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type DynamicDataAttribute = class
    inherit Attribute
    interface ITestDataSource
    interface ITestDataSourceIgnoreCapability
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true, Inherited=false)>]
type DynamicDataAttribute = class
    inherit Attribute
    interface ITestDataSource
    interface ITestDataSourceIgnoreCapability
Public NotInheritable Class DynamicDataAttribute
Inherits Attribute
Implements ITestDataSource
Public NotInheritable Class DynamicDataAttribute
Inherits Attribute
Implements ITestDataSource, ITestDataSourceIgnoreCapability, ITestDataSourceUnfoldingCapability
Public NotInheritable Class DynamicDataAttribute
Inherits Attribute
Implements ITestDataSource, ITestDataSourceUnfoldingCapability
Public NotInheritable Class DynamicDataAttribute
Inherits Attribute
Implements ITestDataSource, ITestDataSourceIgnoreCapability
Dědičnost
DynamicDataAttribute
Atributy
Implementuje

Konstruktory

Name Description
DynamicDataAttribute(String, DynamicDataSourceType)

Inicializuje novou instanci DynamicDataAttribute třídy.

DynamicDataAttribute(String, Object[])

Inicializuje novou instanci DynamicDataAttribute třídy.

DynamicDataAttribute(String, Type, DynamicDataSourceType)

Inicializuje novou instanci DynamicDataAttribute třídy, pokud jsou testovací data přítomna ve třídě, která se liší od třídy testovací metody.

DynamicDataAttribute(String, Type, Object[])

Inicializuje novou instanci DynamicDataAttribute třídy, pokud jsou testovací data přítomna ve třídě, která se liší od třídy testovací metody.

DynamicDataAttribute(String, Type)

Inicializuje novou instanci DynamicDataAttribute třídy, pokud jsou testovací data přítomna ve třídě, která se liší od třídy testovací metody.

DynamicDataAttribute(String)

Inicializuje novou instanci DynamicDataAttribute třídy.

Vlastnosti

Name Description
DynamicDataDisplayName

Získá nebo nastaví název metody použité k přizpůsobení zobrazovaného názvu ve výsledcích testu.

DynamicDataDisplayNameDeclaringType

Získá nebo nastaví deklarující typ použitý k přizpůsobení zobrazovaného názvu ve výsledcích testu.

IgnoreMessage

Získá nebo nastaví důvod ignorovat tento dynamický zdroj dat. Nastavení vlastnosti na hodnotu non-null bude ignorovat dynamický zdroj dat.

UnfoldingStrategy

Získá strategii pro rozbalení parametrizovaných testů.

Metody

Name Description
GetData(MethodInfo)

Získá testovací data z vlastního zdroje testovacích dat.

GetDisplayName(MethodInfo, Object[])

Získá zobrazovaný název odpovídající řádku testovacích dat pro zobrazení v TestResults.

Platí pro