Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException> Costruttori

Definizione

Overload

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

Origine:
Assert.ThrowsException.cs
Origine:
Assert.ThrowsException.cs
Origine:
Assert.ThrowsException.cs
Origine:
Assert.ThrowsException.cs
Origine:
Assert.ThrowsException.cs
Origine:
Assert.ThrowsException.cs
Origine:
Assert.ThrowsException.cs
Origine:
Assert.ThrowsException.InterpolatedStringHandlers.cs

Inizializza una nuova istanza dello struct 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)

Parametri

literalLength
Int32

Numero di caratteri costanti nella stringa interpolata.

formattedCount
Int32

Numero di espressioni di interpolazione nella stringa interpolata.

action
Action

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.

Si applica a

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

Origine:
Assert.ThrowsException.cs
Origine:
Assert.ThrowsException.cs
Origine:
Assert.ThrowsException.cs
Origine:
Assert.ThrowsException.cs
Origine:
Assert.ThrowsException.cs
Origine:
Assert.ThrowsException.cs
Origine:
Assert.ThrowsException.InterpolatedStringHandlers.cs

Inizializza una nuova istanza dello struct 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)

Parametri

literalLength
Int32

Numero di caratteri costanti nella stringa interpolata.

formattedCount
Int32

Numero di espressioni di interpolazione nella stringa interpolata.

action
Func<Object>

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.

Si applica a