CollectionAssert.IsSubsetOf Method (ICollection, ICollection, String, Object)
Verifies that the first collection is a subset of the second collection. Displays a message if the assertion fails, and applies the specified formatting to it.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
public static void IsSubsetOf( ICollection subset, ICollection superset, string message, params object parameters )
The collection expected to be a subset of superset.
The collection expected to be a superset of subset.
A message to display if the assertion fails. This message can be seen in the unit test results.
An array of parameters to use when formatting message.
An element in subset is not found in superset or an element in subset is not found in superset in sufficient quantity.
One collection is a subset of another collection if every element in the first collection also appears in the second collection. An element that appears in the first collection more than once must appear in the second collection as many times, or more, as it does in the first collection. The second collection may have elements that are not in the first collection, but that is not required.