TestContext.TestException プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
TestInitialize または 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
プロパティ値
- 属性
注釈
このプロパティは、TestInitialize または TestMethod の手順中にアクセスすると常に null されます。