Share via


TestMethodAttribute Constructors

Definition

Overloads

TestMethodAttribute()

Initializes a new instance of the TestMethodAttribute class.

TestMethodAttribute(String)

Initializes a new instance of the TestMethodAttribute class.

TestMethodAttribute(String, Int32)

Initializes a new instance of the TestMethodAttribute class.

TestMethodAttribute()

Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs

Initializes a new instance of the TestMethodAttribute class.

public TestMethodAttribute();
Public Sub New ()

Applies to

TestMethodAttribute(String)

Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs
Source:
TestMethodAttribute.cs

Initializes a new instance of the TestMethodAttribute class.

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

Parameters

displayName
String

Display name for the test.

Applies to

TestMethodAttribute(String, Int32)

Source:
TestMethodAttribute.cs

Initializes a new instance of the TestMethodAttribute class.

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

Parameters

callerFilePath
String
callerLineNumber
Int32

Applies to