Sdílet prostřednictvím


DataRowAttribute Třída

Definice

Atribut definující vložená data pro testovací metodu

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

Konstruktory

Name Description
DataRowAttribute()

Inicializuje novou instanci DataRowAttribute třídy.

DataRowAttribute(Object, Object[])

Inicializuje novou instanci DataRowAttribute třídy, která přebírá pole argumentů.

DataRowAttribute(Object)

Inicializuje novou instanci DataRowAttribute třídy s polem argumentů objektu.

DataRowAttribute(Object[])

Inicializuje novou instanci DataRowAttribute třídy s polem argumentů objektu.

DataRowAttribute(String[])

Inicializuje novou instanci DataRowAttribute třídy pomocí pole řetězcových argumentů.

Vlastnosti

Name Description
Data

Získá data pro volání testovací metody.

DisplayName

Získá nebo nastaví zobrazovaný název ve výsledcích testu pro přizpůsobení.

IgnoreMessage

Získá nebo nastaví důvod pro ignorování konkrétního testovacího případu. Nastavení vlastnosti na hodnotu non-null bude ignorovat testovací případ.

TestIdGenerationStrategy

Získá strategii generování testovacího ID.

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