Assert.AssertSingleInterpolatedStringHandler<TItem> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 结构的新实例 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
此方法返回时,指示是否应计算内插字符串。