Assert.ContainsAll メソッド

定義

オーバーロード

名前 説明
ContainsAll(IEnumerable, IEnumerable, String, String, String)

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストし、expected内の要素がcollectionよりも多く発生した場合に例外をスローします。

ContainsAll(IEnumerable, IEnumerable, IEqualityComparer, String, String, String)

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストし、expected内の要素がcollectionよりも多く発生した場合に例外をスローします。

ContainsAll<T>(IEnumerable<T>, IEnumerable<T>, String, String, String)

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストし、expected内の要素がcollectionよりも多く発生した場合に例外をスローします。

ContainsAll<T>(IEnumerable<T>, IEnumerable<T>, IEqualityComparer<T>, String, String, String)

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストし、expected内の要素がcollectionよりも多く発生した場合に例外をスローします。

ContainsAll(IEnumerable, IEnumerable, String, String, String)

ソース:
Assert.ContainsAll.cs

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストし、expected内の要素がcollectionよりも多く発生した場合に例外をスローします。

public static void ContainsAll(System.Collections.IEnumerable? expected, System.Collections.IEnumerable? collection, string? message = "", string expectedExpression = "", string collectionExpression = "");
static member ContainsAll : System.Collections.IEnumerable * System.Collections.IEnumerable * string * string * string -> unit
Public Shared Sub ContainsAll (expected As IEnumerable, collection As IEnumerable, Optional message As String = "", Optional expectedExpression As String = "", Optional collectionExpression As String = "")

パラメーター

expected
IEnumerable

すべてのアイテムが collectionに存在することが予想される項目のコレクション。

collection
IEnumerable

コレクションには、 expectedのすべての項目が含まれている必要があります。

message
String

expected内の要素が (十分な多重度の) collectionで見つからない場合に例外に含めるメッセージ。 メッセージがテスト結果に表示されます。

expectedExpression
String

呼び出し元の引数式を介してコンパイラによって指定された、予期される構文式。 ユーザーは、このパラメーターの値を渡さないでください。

collectionExpression
String

呼び出し元の引数式を介してコンパイラによって指定されたコレクションの構文式。 ユーザーは、このパラメーターの値を渡さないでください。

例外

expectedに、collectionよりも複数回発生する要素が少なくとも 1 つ含まれている場合にスローされます。

注釈

要素の多重度は重要です。 [1] にはすべての [1, 1]が含まれていません。

適用対象

ContainsAll(IEnumerable, IEnumerable, IEqualityComparer, String, String, String)

ソース:
Assert.ContainsAll.cs

collectionexpectedのすべての要素 (多重度) が含まれているかどうかをテストし、expected内の要素がcollectionよりも多く発生した場合に例外をスローします。

public static void ContainsAll(System.Collections.IEnumerable? expected, System.Collections.IEnumerable? collection, System.Collections.IEqualityComparer? comparer, string? message = "", string expectedExpression = "", string collectionExpression = "");
static member ContainsAll : System.Collections.IEnumerable * System.Collections.IEnumerable * System.Collections.IEqualityComparer * string * string * string -> unit
Public Shared Sub ContainsAll (expected As IEnumerable, collection As IEnumerable, comparer As IEqualityComparer, Optional message As String = "", Optional expectedExpression As String = "", Optional collectionExpression As String = "")

パラメーター

expected
IEnumerable

すべてのアイテムが collectionに存在することが予想される項目のコレクション。

collection
IEnumerable

コレクションには、 expectedのすべての項目が含まれている必要があります。

comparer
IEqualityComparer

要素を比較するときに使用する等価比較子。

message
String

expected内の要素が (十分な多重度の) collectionで見つからない場合に例外に含めるメッセージ。 メッセージがテスト結果に表示されます。

expectedExpression
String

呼び出し元の引数式を介してコンパイラによって指定された、予期される構文式。 ユーザーは、このパラメーターの値を渡さないでください。

collectionExpression
String

呼び出し元の引数式を介してコンパイラによって指定されたコレクションの構文式。 ユーザーは、このパラメーターの値を渡さないでください。

例外

expectedに、collectionよりも複数回発生する要素が少なくとも 1 つ含まれている場合にスローされます。

注釈

要素の多重度は重要です。 [1] にはすべての [1, 1]が含まれていません。

適用対象

ContainsAll<T>(IEnumerable<T>, IEnumerable<T>, String, String, String)

ソース:
Assert.ContainsAll.cs

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストし、expected内の要素がcollectionよりも多く発生した場合に例外をスローします。

public static void ContainsAll<T>(System.Collections.Generic.IEnumerable<T>? expected, System.Collections.Generic.IEnumerable<T>? collection, string? message = "", string expectedExpression = "", string collectionExpression = "");
static member ContainsAll : seq<'T> * seq<'T> * string * string * string -> unit
Public Shared Sub ContainsAll(Of T) (expected As IEnumerable(Of T), collection As IEnumerable(Of T), Optional message As String = "", Optional expectedExpression As String = "", Optional collectionExpression As String = "")

型パラメーター

T

コレクション項目の型。

パラメーター

expected
IEnumerable<T>

すべてのアイテムが collectionに存在することが予想される項目のコレクション。

collection
IEnumerable<T>

コレクションには、 expectedのすべての項目が含まれている必要があります。

message
String

expected内の要素が (十分な多重度の) collectionで見つからない場合に例外に含めるメッセージ。 メッセージがテスト結果に表示されます。

expectedExpression
String

呼び出し元の引数式を介してコンパイラによって指定された、予期される構文式。 ユーザーは、このパラメーターの値を渡さないでください。

collectionExpression
String

呼び出し元の引数式を介してコンパイラによって指定されたコレクションの構文式。 ユーザーは、このパラメーターの値を渡さないでください。

例外

expectedに、collectionよりも複数回発生する要素が少なくとも 1 つ含まれている場合にスローされます。

注釈

要素の多重度は重要です。 [1] にはすべての [1, 1]が含まれていません。

適用対象

ContainsAll<T>(IEnumerable<T>, IEnumerable<T>, IEqualityComparer<T>, String, String, String)

ソース:
Assert.ContainsAll.cs

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストし、expected内の要素がcollectionよりも多く発生した場合に例外をスローします。

public static void ContainsAll<T>(System.Collections.Generic.IEnumerable<T>? expected, System.Collections.Generic.IEnumerable<T>? collection, System.Collections.Generic.IEqualityComparer<T>? comparer, string? message = "", string expectedExpression = "", string collectionExpression = "");
static member ContainsAll : seq<'T> * seq<'T> * System.Collections.Generic.IEqualityComparer<'T> * string * string * string -> unit
Public Shared Sub ContainsAll(Of T) (expected As IEnumerable(Of T), collection As IEnumerable(Of T), comparer As IEqualityComparer(Of T), Optional message As String = "", Optional expectedExpression As String = "", Optional collectionExpression As String = "")

型パラメーター

T

コレクション項目の型。

パラメーター

expected
IEnumerable<T>

すべてのアイテムが collectionに存在することが予想される項目のコレクション。

collection
IEnumerable<T>

コレクションには、 expectedのすべての項目が含まれている必要があります。

comparer
IEqualityComparer<T>

要素を比較するときに使用する等価比較子。

message
String

expected内の要素が (十分な多重度の) collectionで見つからない場合に例外に含めるメッセージ。 メッセージがテスト結果に表示されます。

expectedExpression
String

呼び出し元の引数式を介してコンパイラによって指定された、予期される構文式。 ユーザーは、このパラメーターの値を渡さないでください。

collectionExpression
String

呼び出し元の引数式を介してコンパイラによって指定されたコレクションの構文式。 ユーザーは、このパラメーターの値を渡さないでください。

例外

expectedに、collectionよりも複数回発生する要素が少なくとも 1 つ含まれている場合にスローされます。

注釈

要素の多重度は重要です。 [1] にはすべての [1, 1]が含まれていません。

適用対象