語言

Assert.AssertSingleInterpolatedStringHandler<TItem> 建構函式

定義

多載

名稱 Description
Assert.AssertSingleInterpolatedStringHandler<TItem>(Int32, Int32, IEnumerable<TItem>, Boolean)

初始化一個新的結構體實例 Assert.AssertSingleInterpolatedStringHandler<TItem>

Assert.AssertSingleInterpolatedStringHandler<TItem>(Int32, Int32, Memory<TItem>, Boolean)

初始化一個新的結構體實例 Assert.AssertSingleInterpolatedStringHandler<TItem>

Assert.AssertSingleInterpolatedStringHandler<TItem>(Int32, Int32, ReadOnlyMemory<TItem>, Boolean)

初始化一個新的結構體實例 Assert.AssertSingleInterpolatedStringHandler<TItem>

Assert.AssertSingleInterpolatedStringHandler<TItem>(Int32, Int32, ReadOnlySpan<TItem>, Boolean)

初始化一個新的結構體實例 Assert.AssertSingleInterpolatedStringHandler<TItem>

Assert.AssertSingleInterpolatedStringHandler<TItem>(Int32, Int32, Span<TItem>, Boolean)

初始化一個新的結構體實例 Assert.AssertSingleInterpolatedStringHandler<TItem>

Assert.AssertSingleInterpolatedStringHandler<TItem>(Int32, Int32, IEnumerable<TItem>, Boolean)

來源:
Assert.Contains.cs
來源:
Assert.Contains.cs
來源:
Assert.Contains.cs
來源:
Assert.Contains.cs
來源:
Assert.Contains.cs
來源:
Assert.Contains.cs
來源:
Assert.Contains.cs
來源:
Assert.ContainsSingle.cs

初始化一個新的結構體實例 Assert.AssertSingleInterpolatedStringHandler<TItem>

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

參數

literalLength
Int32

插值字串中常數字元的數量。

formattedCount
Int32

插值字串中插值表達式的數量。

collection
IEnumerable<TItem>

該催收被主張;訊息僅在斷言失敗時計算。

shouldAppend
Boolean

當此方法回傳時,表示是否應評估插值字串。

適用於

Assert.AssertSingleInterpolatedStringHandler<TItem>(Int32, Int32, Memory<TItem>, Boolean)

初始化一個新的結構體實例 Assert.AssertSingleInterpolatedStringHandler<TItem>

public AssertSingleInterpolatedStringHandler(int literalLength, int formattedCount, Memory<TItem> collection, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertSingleInterpolatedStringHandler<'Item> : int * int * Memory<'Item> * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertSingleInterpolatedStringHandler<'Item>
Public Sub New (literalLength As Integer, formattedCount As Integer, collection As Memory(Of TItem), ByRef shouldAppend As Boolean)

參數

literalLength
Int32

插值字串中常數字元的數量。

formattedCount
Int32

插值字串中插值表達式的數量。

collection
Memory<TItem>

該催收被主張;訊息僅在斷言失敗時計算。

shouldAppend
Boolean

當此方法回傳時,表示是否應評估插值字串。

適用於

Assert.AssertSingleInterpolatedStringHandler<TItem>(Int32, Int32, ReadOnlyMemory<TItem>, Boolean)

初始化一個新的結構體實例 Assert.AssertSingleInterpolatedStringHandler<TItem>

public AssertSingleInterpolatedStringHandler(int literalLength, int formattedCount, ReadOnlyMemory<TItem> collection, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertSingleInterpolatedStringHandler<'Item> : int * int * ReadOnlyMemory<'Item> * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertSingleInterpolatedStringHandler<'Item>
Public Sub New (literalLength As Integer, formattedCount As Integer, collection As ReadOnlyMemory(Of TItem), ByRef shouldAppend As Boolean)

參數

literalLength
Int32

插值字串中常數字元的數量。

formattedCount
Int32

插值字串中插值表達式的數量。

collection
ReadOnlyMemory<TItem>

該催收被主張;訊息僅在斷言失敗時計算。

shouldAppend
Boolean

當此方法回傳時,表示是否應評估插值字串。

適用於

Assert.AssertSingleInterpolatedStringHandler<TItem>(Int32, Int32, ReadOnlySpan<TItem>, Boolean)

初始化一個新的結構體實例 Assert.AssertSingleInterpolatedStringHandler<TItem>

public AssertSingleInterpolatedStringHandler(int literalLength, int formattedCount, ReadOnlySpan<TItem> collection, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertSingleInterpolatedStringHandler<'Item> : int * int * ReadOnlySpan<'Item> * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertSingleInterpolatedStringHandler<'Item>
Public Sub New (literalLength As Integer, formattedCount As Integer, collection As ReadOnlySpan(Of TItem), ByRef shouldAppend As Boolean)

參數

literalLength
Int32

插值字串中常數字元的數量。

formattedCount
Int32

插值字串中插值表達式的數量。

collection
ReadOnlySpan<TItem>

該催收被主張;訊息僅在斷言失敗時計算。

shouldAppend
Boolean

當此方法回傳時,表示是否應評估插值字串。

適用於

Assert.AssertSingleInterpolatedStringHandler<TItem>(Int32, Int32, Span<TItem>, Boolean)

初始化一個新的結構體實例 Assert.AssertSingleInterpolatedStringHandler<TItem>

public AssertSingleInterpolatedStringHandler(int literalLength, int formattedCount, Span<TItem> collection, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertSingleInterpolatedStringHandler<'Item> : int * int * Span<'Item> * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertSingleInterpolatedStringHandler<'Item>
Public Sub New (literalLength As Integer, formattedCount As Integer, collection As Span(Of TItem), ByRef shouldAppend As Boolean)

參數

literalLength
Int32

插值字串中常數字元的數量。

formattedCount
Int32

插值字串中插值表達式的數量。

collection
Span<TItem>

該催收被主張;訊息僅在斷言失敗時計算。

shouldAppend
Boolean

當此方法回傳時,表示是否應評估插值字串。

適用於