Assert.AssertIsNotEmptyInterpolatedStringHandler<TItem> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Assert.AssertIsNotEmptyInterpolatedStringHandler<TItem>(Int32, Int32, IEnumerable<TItem>, Boolean)
- Source:
- Assert.Count.cs
- Source:
- Assert.Count.cs
- Source:
- Assert.Count.cs
- Source:
- Assert.Count.cs
- Source:
- Assert.Count.cs
- Source:
- Assert.Count.cs
- Source:
- Assert.Count.cs
- Source:
- Assert.IsEmpty.cs
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)
参数
- literalLength
- Int32
内插字符串中的常量字符数。
- formattedCount
- Int32
内插字符串中的内插表达式数。
- collection
- IEnumerable<TItem>
要断言的集合;仅当断言失败时,才会计算消息。
- shouldAppend
- Boolean
此方法返回时,指示是否应计算内插字符串。
适用于
Assert.AssertIsNotEmptyInterpolatedStringHandler<TItem>(Int32, Int32, Memory<TItem>, Boolean)
public AssertIsNotEmptyInterpolatedStringHandler(int literalLength, int formattedCount, Memory<TItem> collection, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertIsNotEmptyInterpolatedStringHandler<'Item> : int * int * Memory<'Item> * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertIsNotEmptyInterpolatedStringHandler<'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.AssertIsNotEmptyInterpolatedStringHandler<TItem>(Int32, Int32, ReadOnlyMemory<TItem>, Boolean)
public AssertIsNotEmptyInterpolatedStringHandler(int literalLength, int formattedCount, ReadOnlyMemory<TItem> collection, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertIsNotEmptyInterpolatedStringHandler<'Item> : int * int * ReadOnlyMemory<'Item> * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertIsNotEmptyInterpolatedStringHandler<'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.AssertIsNotEmptyInterpolatedStringHandler<TItem>(Int32, Int32, ReadOnlySpan<TItem>, Boolean)
public AssertIsNotEmptyInterpolatedStringHandler(int literalLength, int formattedCount, ReadOnlySpan<TItem> collection, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertIsNotEmptyInterpolatedStringHandler<'Item> : int * int * ReadOnlySpan<'Item> * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertIsNotEmptyInterpolatedStringHandler<'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.AssertIsNotEmptyInterpolatedStringHandler<TItem>(Int32, Int32, Span<TItem>, Boolean)
public AssertIsNotEmptyInterpolatedStringHandler(int literalLength, int formattedCount, Span<TItem> collection, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertIsNotEmptyInterpolatedStringHandler<'Item> : int * int * Span<'Item> * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertIsNotEmptyInterpolatedStringHandler<'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
此方法返回时,指示是否应计算内插字符串。