Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<TException> Constructeur

Définition

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)

Paramètres

literalLength
Int32

Nombre de caractères constants dans la chaîne interpolée.

formattedCount
Int32

Nombre d’expressions d’interpolation dans la chaîne interpolée.

action
Func<Task>

Délégué déclaré ; le message est calculé uniquement lorsque l’assertion échoue.

shouldAppend
Boolean

Lorsque cette méthode est retournée, indique si la chaîne interpolée doit être évaluée.

S’applique à