DynamicDataAttribute Sınıf

Tanım

Test yöntemi için dinamik veri tanımlama özniteliği.

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
Devralma
DynamicDataAttribute
Öznitelikler
Uygulamalar

Oluşturucular

Name Description
DynamicDataAttribute(String, DynamicDataSourceType)

DynamicDataAttribute sınıfının yeni bir örneğini başlatır.

DynamicDataAttribute(String, Object[])

DynamicDataAttribute sınıfının yeni bir örneğini başlatır.

DynamicDataAttribute(String, Type, DynamicDataSourceType)

Test verileri test yönteminin DynamicDataAttribute sınıfından farklı bir sınıfta mevcut olduğunda sınıfının yeni bir örneğini başlatır.

DynamicDataAttribute(String, Type, Object[])

Test verileri test yönteminin DynamicDataAttribute sınıfından farklı bir sınıfta mevcut olduğunda sınıfının yeni bir örneğini başlatır.

DynamicDataAttribute(String, Type)

Test verileri test yönteminin DynamicDataAttribute sınıfından farklı bir sınıfta mevcut olduğunda sınıfının yeni bir örneğini başlatır.

DynamicDataAttribute(String)

DynamicDataAttribute sınıfının yeni bir örneğini başlatır.

Özellikler

Name Description
DynamicDataDisplayName

Test sonuçlarında görünen adı özelleştirmek için kullanılan yöntemin adını alır veya ayarlar.

DynamicDataDisplayNameDeclaringType

Test sonuçlarında görünen adı özelleştirmek için kullanılan bildirim türünü alır veya ayarlar.

IgnoreMessage

Bu dinamik veri kaynağını yoksaymak için bir neden alır veya ayarlar. özelliği null olmayan bir değere ayarlanırsa dinamik veri kaynağı yoksayılı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.

Şunlara uygulanır