ConstraintFactory.EquivalentTo(IEnumerable) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回條件約束,測試實際值是否為集合,其中包含與提供引數之集合相同的專案。
public NUnit.Framework.Constraints.CollectionEquivalentConstraint EquivalentTo(System.Collections.IEnumerable expected);
member this.EquivalentTo : System.Collections.IEnumerable -> NUnit.Framework.Constraints.CollectionEquivalentConstraint
參數
- expected
- IEnumerable