Compartir a través de


CollectionAssert.IsNotSubsetOf Method

Definition

Overloads

IsNotSubsetOf(ICollection, ICollection)

Tests whether one collection is not a subset of another collection and throws an exception if all elements in the subset are also in the superset.

IsNotSubsetOf(ICollection, ICollection, String)

Tests whether one collection is not a subset of another collection and throws an exception if all elements in the subset are also in the superset.

IsNotSubsetOf(ICollection, ICollection, String, Object[])

Tests whether one collection is not a subset of another collection and throws an exception if all elements in the subset are also in the superset.

IsNotSubsetOf(ICollection, ICollection)

Tests whether one collection is not a subset of another collection and throws an exception if all elements in the subset are also in the superset.

public:
 static void IsNotSubsetOf(System::Collections::ICollection ^ subset, System::Collections::ICollection ^ superset);
public static void IsNotSubsetOf (System.Collections.ICollection subset, System.Collections.ICollection superset);
static member IsNotSubsetOf : System.Collections.ICollection * System.Collections.ICollection -> unit
Public Shared Sub IsNotSubsetOf (subset As ICollection, superset As ICollection)

Parameters

subset
ICollection

The collection expected not to be a subset of superset.

superset
ICollection

The collection expected not to be a superset of subset

Exceptions

Thrown if every element in subset is also found in superset.

Applies to

IsNotSubsetOf(ICollection, ICollection, String)

Tests whether one collection is not a subset of another collection and throws an exception if all elements in the subset are also in the superset.

public:
 static void IsNotSubsetOf(System::Collections::ICollection ^ subset, System::Collections::ICollection ^ superset, System::String ^ message);
public static void IsNotSubsetOf (System.Collections.ICollection subset, System.Collections.ICollection superset, string message);
static member IsNotSubsetOf : System.Collections.ICollection * System.Collections.ICollection * string -> unit
Public Shared Sub IsNotSubsetOf (subset As ICollection, superset As ICollection, message As String)

Parameters

subset
ICollection

The collection expected not to be a subset of superset.

superset
ICollection

The collection expected not to be a superset of subset

message
String

The message to include in the exception when every element in subset is also found in superset. The message is shown in test results.

Exceptions

Thrown if every element in subset is also found in superset.

Applies to

IsNotSubsetOf(ICollection, ICollection, String, Object[])

Tests whether one collection is not a subset of another collection and throws an exception if all elements in the subset are also in the superset.

public:
 static void IsNotSubsetOf(System::Collections::ICollection ^ subset, System::Collections::ICollection ^ superset, System::String ^ message, ... cli::array <System::Object ^> ^ parameters);
public static void IsNotSubsetOf (System.Collections.ICollection subset, System.Collections.ICollection superset, string message, params object[] parameters);
static member IsNotSubsetOf : System.Collections.ICollection * System.Collections.ICollection * string * obj[] -> unit
Public Shared Sub IsNotSubsetOf (subset As ICollection, superset As ICollection, message As String, ParamArray parameters As Object())

Parameters

subset
ICollection

The collection expected not to be a subset of superset.

superset
ICollection

The collection expected not to be a superset of subset

message
String

The message to include in the exception when every element in subset is also found in superset. The message is shown in test results.

parameters
Object[]

An array of parameters to use when formatting message.

Exceptions

Thrown if every element in subset is also found in superset.

Applies to