DataRowAttribute Sınıf
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Test yöntemi için satır içi verileri tanımlama özniteliği.
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
- Devralma
-
DataRowAttribute
- Öznitelikler
- Uygulamalar
Oluşturucular
| Name | Description |
|---|---|
| DataRowAttribute() |
DataRowAttribute sınıfının yeni bir örneğini başlatır. |
| DataRowAttribute(Object, Object[]) |
Bir dizi bağımsız değişken alan sınıfının yeni bir örneğini DataRowAttribute başlatır. |
| DataRowAttribute(Object) |
Nesne bağımsız değişkenleri dizisiyle sınıfının yeni bir örneğini DataRowAttribute başlatır. |
| DataRowAttribute(Object[]) |
Nesne bağımsız değişkenleri dizisiyle sınıfının yeni bir örneğini DataRowAttribute başlatır. |
| DataRowAttribute(String[]) |
Dize bağımsız değişkenleri dizisiyle sınıfının yeni bir örneğini DataRowAttribute başlatır. |
Özellikler
| Name | Description |
|---|---|
| Data |
Test yöntemini çağırmak için verileri alır. |
| DisplayName |
Özelleştirme için test sonuçlarında görünen adı alır veya ayarlar. |
| IgnoreMessage |
Belirli bir test olayını yoksaymak için bir neden alır veya ayarlar. özelliği null olmayan bir değere ayarlanırsa test çalışması yoksayılır. |
| TestIdGenerationStrategy |
Test kimliği oluşturma stratejisini alır. |
| UnfoldingStrategy |
Parametreli testleri açma stratejisini alır. |
Yöntemler
| Name | Description |
|---|---|
| GetData(MethodInfo) |
Özel test veri kaynağından test verilerini alır. |
| GetDisplayName(MethodInfo, Object[]) |
TestResults'ta görüntülenmek üzere test veri satırına karşılık gelen görünen adı alır. |