Idioma

PlannedTest Construtor

Definição

Inicializa uma nova instância da classe 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)))

Parâmetros

fullyQualifiedTestClassName
String

O nome totalmente qualificado da classe declarando o método de teste.

testName
String

O nome simples do método de teste.

testDisplayName
String

O nome de exibição do teste, quando definido; caso contrário null.

assemblyPath
String

O caminho completo do assembly que declara o teste, em disco.

managedTypeName
String

O nome do tipo gerenciado ECMA-335 para o tipo de declaração, quando disponível.

managedMethodName
String

O nome do método gerenciado ECMA-335 (tipos de parâmetro de codificação) para o método de teste, quando disponível.

declaringFilePath
String

O arquivo de origem que declara o teste, capturado em tempo de compilação por TestMethodAttribute, quando disponível.

declaringLineNumber
Nullable<Int32>

O número de linha no declaringFilePath qual o teste é declarado, quando disponível.

testCategories
IReadOnlyCollection<String>

As categorias aplicadas por meio de TestCategoryAttribute.

testProperties
IReadOnlyCollection<KeyValuePair<String,String>>

Os pares nome/valor aplicados por meio de TestPropertyAttribute. Várias entradas com o mesmo nome são preservadas.

Aplica-se a