Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<TException> Konstruktor

Definice

public AssertNonStrictThrowsAsyncInterpolatedStringHandler(int literalLength, int formattedCount, Func<System.Threading.Tasks.Task> action, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)> : int * int * Func<System.Threading.Tasks.Task> * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)>
Public Sub New (literalLength As Integer, formattedCount As Integer, action As Func(Of Task), ByRef shouldAppend As Boolean)

Parametry

literalLength
Int32

Počet konstantních znaků v interpolovaném řetězci.

formattedCount
Int32

Počet interpolačních výrazů v interpolovaném řetězci.

action
Func<Task>

Delegát, který je uplatněn; zpráva se vypočítá pouze v případě, že kontrolní výraz selže.

shouldAppend
Boolean

Když tato metoda vrátí, určuje, zda má být interpolovaný řetězec vyhodnocen.

Platí pro