共用方式為


DataTestMethodAttribute Class

Definition

Attribute for data driven test where data can be specified in-line.

public ref class DataTestMethodAttribute : Microsoft::VisualStudio::TestTools::UnitTesting::TestMethodAttribute
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)]
public class DataTestMethodAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)>]
type DataTestMethodAttribute = class
    inherit TestMethodAttribute
Public Class DataTestMethodAttribute
Inherits TestMethodAttribute
Inheritance
DataTestMethodAttribute
Attributes

Constructors

DataTestMethodAttribute()

Properties

DisplayName

Gets display Name for the Test Window

(Inherited from TestMethodAttribute)

Methods

Execute()

Executes a test method.

(Inherited from TestMethodAttribute)

Applies to