Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException> コンストラクター

定義

オーバーロード

Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException>(Int32, Int32, Action, Boolean)

ソース:
Assert.ThrowsException.cs
ソース:
Assert.ThrowsException.cs
ソース:
Assert.ThrowsException.cs
ソース:
Assert.ThrowsException.cs
ソース:
Assert.ThrowsException.cs
ソース:
Assert.ThrowsException.cs
ソース:
Assert.ThrowsException.cs
ソース:
Assert.ThrowsException.InterpolatedStringHandlers.cs

Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException> 構造体の新しいインスタンスを初期化します。

public AssertNonStrictThrowsInterpolatedStringHandler(int literalLength, int formattedCount, Action action, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertNonStrictThrowsInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)> : int * int * Action * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertNonStrictThrowsInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)>
Public Sub New (literalLength As Integer, formattedCount As Integer, action As Action, ByRef shouldAppend As Boolean)

パラメーター

literalLength
Int32

挿入文字列内の定数文字の数。

formattedCount
Int32

補間文字列内の補間式の数。

action
Action

アサートされているデリゲート。メッセージは、アサーションが失敗した場合にのみ計算されます。

shouldAppend
Boolean

このメソッドから制御が戻るときに、補間された文字列を評価するかどうかを示します。

適用対象

Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException>(Int32, Int32, Func<Object>, Boolean)

ソース:
Assert.ThrowsException.cs
ソース:
Assert.ThrowsException.cs
ソース:
Assert.ThrowsException.cs
ソース:
Assert.ThrowsException.cs
ソース:
Assert.ThrowsException.cs
ソース:
Assert.ThrowsException.cs
ソース:
Assert.ThrowsException.InterpolatedStringHandlers.cs

Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException> 構造体の新しいインスタンスを初期化します。

public AssertNonStrictThrowsInterpolatedStringHandler(int literalLength, int formattedCount, Func<object?> action, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertNonStrictThrowsInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)> : int * int * Func<obj> * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertNonStrictThrowsInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)>
Public Sub New (literalLength As Integer, formattedCount As Integer, action As Func(Of Object), ByRef shouldAppend As Boolean)

パラメーター

literalLength
Int32

挿入文字列内の定数文字の数。

formattedCount
Int32

補間文字列内の補間式の数。

action
Func<Object>

アサートされているデリゲート。メッセージは、アサーションが失敗した場合にのみ計算されます。

shouldAppend
Boolean

このメソッドから制御が戻るときに、補間された文字列を評価するかどうかを示します。

適用対象