ConstraintFactory.EquivalentTo(IEnumerable) 方法

定义

返回一个约束,该约束测试实际值是否为包含与作为参数提供的集合相同的元素的集合。

public NUnit.Framework.Constraints.CollectionEquivalentConstraint EquivalentTo (System.Collections.IEnumerable expected);
member this.EquivalentTo : System.Collections.IEnumerable -> NUnit.Framework.Constraints.CollectionEquivalentConstraint

参数

expected
IEnumerable

返回

适用于