次の方法で共有


TestContext.TestException プロパティ

定義

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 されます。

適用対象