Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<TException> Costruttore
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Inizializza una nuova istanza dello struct Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<TException>.
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)
Parametri
- literalLength
- Int32
Numero di caratteri costanti nella stringa interpolata.
- formattedCount
- Int32
Numero di espressioni di interpolazione nella stringa interpolata.
Delegato asserito; il messaggio viene calcolato solo quando l'asserzione ha esito negativo.
- shouldAppend
- Boolean
Quando termina, questo metodo indica se la stringa interpolata deve essere valutata.