Compartir a través de


TestContext.TestException Propiedad

Definición

Obtiene o establece la excepción que se produjo en los pasos TestInitialize o TestMethod.

public Exception? TestException { get; protected set; }
[System.Runtime.CompilerServices.Nullable(2)]
public Exception? TestException { get; protected set; }
member this.TestException : Exception with get, set
[<System.Runtime.CompilerServices.Nullable(2)>]
member this.TestException : Exception with get, set
Public Property TestException As Exception

Valor de propiedad

Atributos

Comentarios

La propiedad siempre null se obtiene acceso durante los pasos TestInitialize o TestMethod.

Se aplica a