DataTestMethodAttribute 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.
Bu öznitelik şu anda ile karşılaştırıldığında TestMethodAttributefarklı bir işlevsellik sağlamaz. Yalnızca geriye dönük uyumluluk için mevcuttur. Parametreli testler için bile kullanılması TestMethodAttribute önerilir.
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)]
public class DataTestMethodAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute
[System.AttributeUsage(System.AttributeTargets.Method)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public class DataTestMethodAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute
[System.AttributeUsage(System.AttributeTargets.Method)]
public class DataTestMethodAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)>]
type DataTestMethodAttribute = class
inherit TestMethodAttribute
[<System.AttributeUsage(System.AttributeTargets.Method)>]
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
type DataTestMethodAttribute = class
inherit TestMethodAttribute
[<System.AttributeUsage(System.AttributeTargets.Method)>]
type DataTestMethodAttribute = class
inherit TestMethodAttribute
Public Class DataTestMethodAttribute
Inherits TestMethodAttribute
- Devralma
- Öznitelikler
Oluşturucular
| Name | Description |
|---|---|
| DataTestMethodAttribute() |
DataTestMethodAttribute sınıfının yeni bir örneğini başlatır. |
| DataTestMethodAttribute(String, Int32) |
DataTestMethodAttribute sınıfının yeni bir örneğini başlatır. |
| DataTestMethodAttribute(String) |
DataTestMethodAttribute sınıfının yeni bir örneğini başlatır. |
Özellikler
| Name | Description |
|---|---|
| DeclaringFilePath |
Özniteliğini bildiren dosya yolunu alır. (Devralındığı yer: TestMethodAttribute) |
| DeclaringLineNumber |
özniteliğini bildiren satır numarasını DeclaringFilePath alır. (Devralındığı yer: TestMethodAttribute) |
| DisplayName |
Test için görünen adı alır veya ayarlar. (Devralındığı yer: TestMethodAttribute) |
| UnfoldingStrategy |
Parametreli testleri açma stratejisini alır veya ayarlar. (Devralındığı yer: TestMethodAttribute) |
Yöntemler
| Name | Description |
|---|---|
| Execute(ITestMethod) |
Bu öznitelik şu anda ile karşılaştırıldığında TestMethodAttributefarklı bir işlevsellik sağlamaz. Yalnızca geriye dönük uyumluluk için mevcuttur. Parametreli testler için bile kullanılması TestMethodAttribute önerilir. |
| Execute(ITestMethod) |
Bir test yöntemi yürütür. (Devralındığı yer: TestMethodAttribute) |
| ExecuteAsync(ITestMethod) |
Bir test yöntemi yürütür. (Devralındığı yer: TestMethodAttribute) |