Assert.AssertSingleInterpolatedStringHandler<TItem> 构造函数

定义

初始化 结构的新实例 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

此方法返回时,指示是否应计算内插字符串。

适用于