Namespace:ReactiveTests
装配: Tests.System.Reactive.dll) 中的 Tests.System.Reactive (
语法
'Declaration
<ExtensionAttribute> _
Public Shared Sub AssertEqual(Of T) ( _
actual As IEnumerable(Of T), _
ParamArray expected As T() _
)
'Usage
Dim actual As IEnumerable(Of T)
Dim expected As T()
actual.AssertEqual(expected)
public static void AssertEqual<T>(
this IEnumerable<T> actual,
params T[] expected
)
[ExtensionAttribute]
public:
generic<typename T>
static void AssertEqual(
IEnumerable<T>^ actual,
... array<T>^ expected
)
static member AssertEqual :
actual:IEnumerable<'T> *
expected:'T[] -> unit
JScript does not support generic types and methods.
类型参数
- T
parameters
- 实参
类型: System.Collections.Generic.IEnumerable<T>
- 应有
类型:T[]
使用说明
在 Visual Basic 和 C# 中,可以在 IEnumerable<T> 类型的任何对象上调用此方法作为实例方法。 当使用实例方法语法调用此方法时,请省略第一个参数。 有关详细信息,请参阅或。