Assert.AssertThrowsExactlyAsyncInterpolatedStringHandler<TException> Konstruktor

Definicja

public AssertThrowsExactlyAsyncInterpolatedStringHandler(int literalLength, int formattedCount, Func<System.Threading.Tasks.Task> action, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertThrowsExactlyAsyncInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)> : int * int * Func<System.Threading.Tasks.Task> * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertThrowsExactlyAsyncInterpolatedStringHandler<'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

Liczba znaków stałych w ciągu interpolowanym.

formattedCount
Int32

Liczba wyrażeń interpolacji w ciągu interpolowanym.

action
Func<Task>

Pełnomocnik jest aserowany; komunikat jest obliczany tylko wtedy, gdy potwierdzenie zakończy się niepowodzeniem.

shouldAppend
Boolean

Gdy ta metoda zwraca wartość, wskazuje, czy ma zostać obliczony ciąg interpolowany.

Dotyczy