Assert.AssertIsTrueInterpolatedStringHandler Konstruktor

Definice

Inicializuje novou instanci struktury Assert.AssertIsTrueInterpolatedStringHandler.

public AssertIsTrueInterpolatedStringHandler(int literalLength, int formattedCount, bool? condition, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertIsTrueInterpolatedStringHandler : int * int * Nullable<bool> * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertIsTrueInterpolatedStringHandler
Public Sub New (literalLength As Integer, formattedCount As Integer, condition As Nullable(Of Boolean), ByRef shouldAppend As Boolean)

Parametry

literalLength
Int32

Počet konstantních znaků v interpolovaném řetězci.

formattedCount
Int32

Počet interpolačních výrazů v interpolovaném řetězci.

condition
Nullable<Boolean>

Hodnota podmínky, která se uplatňuje; zpráva se vypočítá pouze v případě, že kontrolní výraz selže.

shouldAppend
Boolean

Když tato metoda vrátí, určuje, zda má být interpolovaný řetězec vyhodnocen.

Platí pro