PlannedTest Constructor

Definition

Initializes a new instance of the PlannedTest class.

public PlannedTest(string fullyQualifiedTestClassName, string testName, string? testDisplayName, string assemblyPath, string? managedTypeName, string? managedMethodName, string? declaringFilePath, int? declaringLineNumber, System.Collections.Generic.IReadOnlyCollection<string> testCategories, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string,string>> testProperties);
new Microsoft.VisualStudio.TestTools.UnitTesting.PlannedTest : string * string * string * string * string * string * string * Nullable<int> * System.Collections.Generic.IReadOnlyCollection<string> * System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string, string>> -> Microsoft.VisualStudio.TestTools.UnitTesting.PlannedTest
Public Sub New (fullyQualifiedTestClassName As String, testName As String, testDisplayName As String, assemblyPath As String, managedTypeName As String, managedMethodName As String, declaringFilePath As String, declaringLineNumber As Nullable(Of Integer), testCategories As IReadOnlyCollection(Of String), testProperties As IReadOnlyCollection(Of KeyValuePair(Of String, String)))

Parameters

fullyQualifiedTestClassName
String

The fully-qualified name of the class declaring the test method.

testName
String

The simple name of the test method.

testDisplayName
String

The display name of the test, when set; otherwise null.

assemblyPath
String

The full path of the assembly that declares the test, on disk.

managedTypeName
String

The ECMA-335 managed type name for the declaring type, when available.

managedMethodName
String

The ECMA-335 managed method name (encoding parameter types) for the test method, when available.

declaringFilePath
String

The source file that declares the test, captured at compile-time by TestMethodAttribute, when available.

declaringLineNumber
Nullable<Int32>

The line number within declaringFilePath at which the test is declared, when available.

testCategories
IReadOnlyCollection<String>

The categories applied via TestCategoryAttribute.

testProperties
IReadOnlyCollection<KeyValuePair<String,String>>

The name/value pairs applied via TestPropertyAttribute. Multiple entries with the same name are preserved.

Applies to