Assert.AssertIsNullInterpolatedStringHandler Costruttore

Definizione

Inizializza una nuova istanza dello struct Assert.AssertIsNullInterpolatedStringHandler.

public AssertIsNullInterpolatedStringHandler(int literalLength, int formattedCount, object value, out bool shouldAppend);
public AssertIsNullInterpolatedStringHandler(int literalLength, int formattedCount, object? value, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertIsNullInterpolatedStringHandler : int * int * obj * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertIsNullInterpolatedStringHandler
Public Sub New (literalLength As Integer, formattedCount As Integer, value As 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.

value
Object

Valore 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