Assert.AssertIsNotEmptyInterpolatedStringHandler<TItem> Konstruktor

Definice

Inicializuje novou instanci struktury Assert.AssertIsNotEmptyInterpolatedStringHandler<TItem>.

public AssertIsNotEmptyInterpolatedStringHandler(int literalLength, int formattedCount, System.Collections.Generic.IEnumerable<TItem> collection, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertIsNotEmptyInterpolatedStringHandler<'Item> : int * int * seq<'Item> * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertIsNotEmptyInterpolatedStringHandler<'Item>
Public Sub New (literalLength As Integer, formattedCount As Integer, collection As IEnumerable(Of TItem), 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.

collection
IEnumerable<TItem>

Kolekce, 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