Share via


STATestMethodAttribute Constructors

Definition

Overloads

STATestMethodAttribute()

Initializes a new instance of the STATestMethodAttribute class.

STATestMethodAttribute(TestMethodAttribute)

Initializes a new instance of the STATestMethodAttribute class. This constructor is intended to be called by STATestClassAttribute (or derived) to wrap an existing test method attribute. It can also be called by a derived STATestMethodAttribute which will be called by a derived STATestClassAttribute.

STATestMethodAttribute(String)

Initializes a new instance of the STATestMethodAttribute class.

STATestMethodAttribute(String, Int32)

Initializes a new instance of the STATestMethodAttribute class.

STATestMethodAttribute()

Source:
STATestMethodAttribute.cs
Source:
STATestMethodAttribute.cs
Source:
STATestMethodAttribute.cs
Source:
STATestMethodAttribute.cs
Source:
STATestMethodAttribute.cs
Source:
STATestMethodAttribute.cs

Initializes a new instance of the STATestMethodAttribute class.

public STATestMethodAttribute();
Public Sub New ()

Applies to

STATestMethodAttribute(TestMethodAttribute)

Source:
STATestMethodAttribute.cs

Initializes a new instance of the STATestMethodAttribute class. This constructor is intended to be called by STATestClassAttribute (or derived) to wrap an existing test method attribute. It can also be called by a derived STATestMethodAttribute which will be called by a derived STATestClassAttribute.

public STATestMethodAttribute(Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute testMethodAttribute);
new Microsoft.VisualStudio.TestTools.UnitTesting.STATestMethodAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute -> Microsoft.VisualStudio.TestTools.UnitTesting.STATestMethodAttribute
Public Sub New (testMethodAttribute As TestMethodAttribute)

Parameters

testMethodAttribute
TestMethodAttribute

The wrapped test method.

Applies to

STATestMethodAttribute(String)

Source:
STATestMethodAttribute.cs
Source:
STATestMethodAttribute.cs
Source:
STATestMethodAttribute.cs
Source:
STATestMethodAttribute.cs
Source:
STATestMethodAttribute.cs
Source:
STATestMethodAttribute.cs

Initializes a new instance of the STATestMethodAttribute class.

public STATestMethodAttribute(string? displayName);
new Microsoft.VisualStudio.TestTools.UnitTesting.STATestMethodAttribute : string -> Microsoft.VisualStudio.TestTools.UnitTesting.STATestMethodAttribute
Public Sub New (displayName As String)

Parameters

displayName
String

Display name for the test.

Applies to

STATestMethodAttribute(String, Int32)

Source:
STATestMethodAttribute.cs

Initializes a new instance of the STATestMethodAttribute class.

public STATestMethodAttribute(string callerFilePath = "", int callerLineNumber = -1);
new Microsoft.VisualStudio.TestTools.UnitTesting.STATestMethodAttribute : string * int -> Microsoft.VisualStudio.TestTools.UnitTesting.STATestMethodAttribute
Public Sub New (Optional callerFilePath As String = "", Optional callerLineNumber As Integer = -1)

Parameters

callerFilePath
String
callerLineNumber
Int32

Applies to