Język

PlannedTest Konstruktor

Definicja

Inicjuje nowe wystąpienie klasy PlannedTest.

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)))

Parametry

fullyQualifiedTestClassName
String

W pełni kwalifikowana nazwa klasy deklarujące metodę testową.

testName
String

Prosta nazwa metody testowej.

testDisplayName
String

Nazwa wyświetlana testu po ustawieniu; w przeciwnym razie null.

assemblyPath
String

Pełna ścieżka zestawu, który deklaruje test na dysku.

managedTypeName
String

Nazwa typu zarządzanego ECMA-335 dla typu deklarowanego, jeśli jest dostępna.

managedMethodName
String

Nazwa metody zarządzanej ECMA-335 (typy parametrów kodowania) dla metody testowej, jeśli jest dostępna.

declaringFilePath
String

Plik źródłowy, który deklaruje test, przechwycony w czasie kompilacji przez TestMethodAttribute, gdy jest dostępny.

declaringLineNumber
Nullable<Int32>

Numer wiersza, w którym declaringFilePath jest zadeklarowany test, jeśli jest dostępny.

testCategories
IReadOnlyCollection<String>

Kategorie zastosowane za pośrednictwem elementu TestCategoryAttribute.

testProperties
IReadOnlyCollection<KeyValuePair<String,String>>

Pary nazw/wartości zastosowane za pośrednictwem elementu TestPropertyAttribute. Wiele wpisów o tej samej nazwie jest zachowywanych.

Dotyczy