Language

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>(Span<T>, Span<T>, IEqualityComparer<T>, String, String, String)

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストします。

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

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストします。

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

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストします。

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

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストします。

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

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

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

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストします。

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

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストします。

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

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストします。

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

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

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

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストします。

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

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストし、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>(Span<T>, Span<T>, IEqualityComparer<T>, String, String, String)

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストします。

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

型パラメーター

T

コレクション項目の型。

パラメーター

expected
Span<T>

すべてのアイテムが collectionに存在することが予想される項目のスパン。

collection
Span<T>

スパンには、 expectedのすべての項目が含まれている必要があります。

comparer
IEqualityComparer<T>

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

message
String

アサーションが失敗したときに例外に含めるメッセージ。

expectedExpression
String

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

collectionExpression
String

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

適用対象

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

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストします。

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

型パラメーター

T

コレクション項目の型。

パラメーター

expected
ReadOnlySpan<T>

すべてのアイテムが collectionに存在することが予想される項目のスパン。

collection
ReadOnlySpan<T>

スパンには、 expectedのすべての項目が含まれている必要があります。

comparer
IEqualityComparer<T>

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

message
String

アサーションが失敗したときに例外に含めるメッセージ。

expectedExpression
String

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

collectionExpression
String

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

適用対象

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

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストします。

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

型パラメーター

T

コレクション項目の型。

パラメーター

expected
ReadOnlyMemory<T>

collectionに存在することが予想される項目のメモリ。

collection
ReadOnlyMemory<T>

メモリには、 expectedのすべての項目が含まれている必要があります。

comparer
IEqualityComparer<T>

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

message
String

アサーションが失敗したときに例外に含めるメッセージ。

expectedExpression
String

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

collectionExpression
String

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

適用対象

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

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストします。

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

型パラメーター

T

コレクション項目の型。

パラメーター

expected
Memory<T>

collectionに存在することが予想される項目のメモリ。

collection
Memory<T>

メモリには、 expectedのすべての項目が含まれている必要があります。

comparer
IEqualityComparer<T>

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

message
String

アサーションが失敗したときに例外に含めるメッセージ。

expectedExpression
String

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

collectionExpression
String

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

適用対象

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]が含まれていません。

適用対象

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

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストします。

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

型パラメーター

T

コレクション項目の型。

パラメーター

expected
ReadOnlySpan<T>

すべてのアイテムが collectionに存在することが予想される項目のスパン。

collection
ReadOnlySpan<T>

スパンには、 expectedのすべての項目が含まれている必要があります。

message
String

アサーションが失敗したときに例外に含めるメッセージ。

expectedExpression
String

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

collectionExpression
String

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

適用対象

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

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストします。

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

型パラメーター

T

コレクション項目の型。

パラメーター

expected
ReadOnlyMemory<T>

collectionに存在することが予想される項目のメモリ。

collection
ReadOnlyMemory<T>

メモリには、 expectedのすべての項目が含まれている必要があります。

message
String

アサーションが失敗したときに例外に含めるメッセージ。

expectedExpression
String

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

collectionExpression
String

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

適用対象

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

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストします。

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

型パラメーター

T

コレクション項目の型。

パラメーター

expected
Memory<T>

collectionに存在することが予想される項目のメモリ。

collection
Memory<T>

メモリには、 expectedのすべての項目が含まれている必要があります。

message
String

アサーションが失敗したときに例外に含めるメッセージ。

expectedExpression
String

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

collectionExpression
String

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

適用対象

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>(Span<T>, Span<T>, String, String, String)

collection expectedのすべての要素が (多重度で) 含まれているかどうかをテストします。

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

型パラメーター

T

コレクション項目の型。

パラメーター

expected
Span<T>

すべてのアイテムが collectionに存在することが予想される項目のスパン。

collection
Span<T>

スパンには、 expectedのすべての項目が含まれている必要があります。

message
String

アサーションが失敗したときに例外に含めるメッセージ。

expectedExpression
String

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

collectionExpression
String

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

適用対象